css « element « Javascript HTML CSS Q&A

Home
Javascript HTML CSS Q&A
1.animation
2.audio
3.background
4.browser
5.button
6.canvas
7.checkbox
8.Cookie
9.Development
10.DIV
11.dom
12.dropdown
13.editor
14.element
15.Event
16.Firefox
17.flash
18.font
19.Form
20.frame
21.hide
22.hyperlink
23.IE
24.iframe
25.image
26.innerHTML
27.json
28.layout
29.Library
30.localStorage
31.Menu
32.mobile
33.onclick
34.popup
35.Render
36.scroll
37.scrollbar
38.svg
39.tab
40.table
41.tag
42.text
43.TextArea
44.TextBox
45.validation
46.video
47.window
48.xml
Javascript HTML CSS Q&A » element » css 
elements in Firefox (JavaScript?)    stackoverflow.com

Is there anyway, using JavaScript or CSS to prevent page breaks inside of <tr> elements in Firefox? I'm assuming since FF still doesn't support page-break-inside that this has to be done ...

1. How can I define an accesskey for an invisible HTML element    stackoverflow.com

I have a <button> with an accesskey assgined to it. The accesskey works fine as long as the button is visible, but when I set display: none or visibility: hidden, the ...

2. How can I convince Firefox to redraw CSS Pseudo-elements?    stackoverflow.com

I'm having issues getting Firefox to update a webpage when its class is changed dynamically. I'm using an html "table" element. When the user clicks a cell in the table header, my ...

3. Distribute elements evenly using CSS    stackoverflow.com

A method to distribute elements evenly in a container using CSS appeared on Smashing Magazine today. I recently had to use Javascript to achieve the same effect for elements of ...

4. How can I line block elements up in a row?    stackoverflow.com

I have several block a elements that I want to be side-by-side to create a menu. The width of each is set to auto to accommodate the text inside. Each a ...

5. Making an element "fixed" if it's being scrolled out    stackoverflow.com

So, I have an element on a webpage that is located under some other elements. This element should, whenever it hits the top of the page be fixed (ie. it shouldn't ...

6. How to check element's visibility via javascript?    stackoverflow.com

I'm interested in a way to check whether an element has display:none style explicility (ie style="display:none"), has a class that has (or inherits) this style, or one of its parents is ...

7. CSS: How to fix an element horizontally but not vertically?    stackoverflow.com

You can see an example here: http://alboard.free.fr/adrien/test.html The layout is based on horizontal scrolling (the red element). But I want the top part to be fixed (the blue element). If ...

8. HTML elements for JavaScript hooks    stackoverflow.com

Most of my development life, I have done a JavaScript generated button like so:

<span>Open/hide</span>
With CSS like
span {
    cursor: pointer;
}
This seemed to work for me, and IMO, it looks ...

9. How do I get the CSS property top from a element in javascript    stackoverflow.com

How do I get the CSS property top from a element in javascript. I have tried document.getElementById(element).offsetTop however this always returns 0. When I have set top: 500px; in the CSS of ...

10. Change CSS Element with JS,JS?    stackoverflow.com

I have about 40 questions on a Question/Anwser script now I want to hide all the other messages then the one with the id clicked but the windows overlap, So how ...

11. CSS Semi-fixed Element?    stackoverflow.com

I remember seeing an example of this recently, but for the life of me I can't find the site. It was a button or something similar that sat in its place near ...

12. How do I get the CSS of this element?    stackoverflow.com

Is you go to this website. Scroll down to "Using the Button Element". Then the first black button called "Super Awesome button" What is the full CSS for this? Just one ...

13. Is it possible to align an element with the bottom of the window, yet make it scrollable, with CSS only?    stackoverflow.com

I have a design going on where I want to align the bottom of an intro paragraph with the bottom of the window, yet make it scroll with the rest of ...

14. Can I use XPath to filter elements by CSS properties?    stackoverflow.com

Or do I have to do something like this:

var nodes = document.childNodes;
for (var i in nodes) {
    if (window.getComputedStyle(nodes[i], null).getPropertyValue('someproperty') == 'somevalue')
       ...

15. How to disable Cufon on certain elements?    stackoverflow.com

I currently use Cufon accross our site with something similar to Cufon.set('fontFamily', 'DIN Medium').replace('h1'); Now for a single H1 tag i would like Cufon to be disabled, this is without changing ...

16. CSS/JS: Evenly spreading elements across multiple lines    stackoverflow.com

How would you go about evenly spreading elements across multiple lines, for example:


wrapper div: <div style="text-align: center">
elements inside: <div style="display: inline-block;
           ...

17. Find all CSS rules that apply to an element    stackoverflow.com

Many tools/APIs provide ways of selecting elements of specific classes or IDs. There's also possible to inspect the raw stylesheets loaded by the browser. However, for browsers to render an element, they'll ...

18. How do I get access to the element in Javascript?    stackoverflow.com

IE displays a default scrollbar on the page, which appears even if the content is too short to require a scrollbar. The typical way to remove this scrollbar (if not needed), is ...

19. How do I sandbox a particular element on a web page?    stackoverflow.com

I have this thing on my webpage... I guess it could be called a widget... How do I separate it's CSS and JS from the containing page's CSS and JS? preferably ...

20. CSS/JS: Floating block elements of differing heights?    stackoverflow.com

Here’s what I'm working with. As you can see, I’ve got a lot of block elements, that I want to get into five columns. However, since they’re of differing height, ...

21. Isolate CSS in element from rest of page    stackoverflow.com

I am displaying HTML emails in a page and often those come with general style information that I need to isolate from the main page. For instance, if the email looks ...

22. element inside of html    stackoverflow.com

This my page here, the header and left nav collapse. the problem when the header is collapsed the left one wont work at all. If the left is collapsed. ...

23. Why can only my most recently added page element be resized?    stackoverflow.com

I have a webpage where I can click on it to add a image. If I then click on the image it makes it bigger and if I click again it ...

24. Does display:none keep elements from loading?    stackoverflow.com

I have a large video file that I want to put on my main page. I don't want it to bog down the loading time, so I was thinking I ...

25. Why is my Javascript interacting with this element wrongly?    stackoverflow.com

Here is the HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
     MYNAME
     11/3/2010
     CISC 131
    ...

26. Why is my CSS not applying on my javascript elements?    stackoverflow.com

Hi in my css file I create following css:

 #searchoption.root{
  width:100%;
    top:200px;
    z-index:4;
    background-color:black;
  }

  #searchoption.optionfield{
    ...

27. Is it possible to find the current (x,y,z) of an element as it moves using translate3d(x,y,z)?    stackoverflow.com

Using CSS3s -webkit-transform: translate3d(x,y,z); is it possible to trace the (x,y,z) movement as it moves with javascript? Example: An object begins at (0,0,0) and we translate it to (4,4,0) over a 4sec duration. Theoretically, ...

28. Make element move by using Javascript    stackoverflow.com

I am trying to make a webpage where when you click a link, the link moves diagonally every 100 milliseconds. So I have my Javascript, but right now when I click the ...

29. HTML dynamic element generation    stackoverflow.com

I have a div tag which has some background color, that adds good look to my page. The div tag contains a button which when clicked generates two textboxes. Everything is ...

30. Does Native HTML have a ListBox element    stackoverflow.com

Does native HTML have a listbox element? You know how it has a drop box element (called select), does it also have a listbox? If not, do you know how I could ...

31. Aligning HTML elements to the middle of the parent without JavaScript    stackoverflow.com

I want to place a <div> in the middle of an element. Aligning it horizontally is easy, and of course the vertical alignment can be done with JS, but I'm sure ...

32. Have an element completly cover another    stackoverflow.com

I am trying to have some element, lets call it overlayElement, completly cover another element, lets call it originalElement. Overlay element is an iFrame, though that may not matter in ...

33. Javascript Dynamically Add Elements & Allow Customization through a CSS File    stackoverflow.com

I need to create a javascript file to be embbeded into/reference by a customer's sales webpage where it will scan the sales page and look for predefined section and insert required ...

34. Center an element that is larger than 100%    stackoverflow.com

I'm having trouble centering an image that's larger than it's parent element. I've set the min-width and min-height to 100% so that the picture will always fill up the parent element. ...

35. Javascript toggling element's display not working    stackoverflow.com

I've done this dozens of times, but for some reason I can't figure out why the #dropdown-list div isn't displaying when the #dropdown-button is clicked...

<html>
<head>
<script type="text/javascript">
    function toggleDropdown(optionalArg){
 ...

36. appendChild() and createElement() Javascript question    stackoverflow.com

When I use appendChild() and createElement() in my code, the subsequent styles for the defined CSS IDs are not applied. Can someone tell me why? Here's my code:

function searchDone(results) {
  ...

37. Apply css rules to other elements    stackoverflow.com

I don't think there is a current SO question addressing this; but if there is please point me to it and I'll close this one. Anyways, suppose html like this:

<div>
  <div ...

38. A webpage inside a webpage: what HTML element can do that?    stackoverflow.com

I am developing a website updater. My idea is to have certain HTML elements be part of the class updatable. I will then change each element with that class to a ...

40. Centre 2 Floating Elements    stackoverflow.com

I have a relativly simple HTML layout where I have a heading div, then below that is a Main div that contains a NavBar on the left side & a ContentDiv ...

41. Horizontally fix element    stackoverflow.com

Using position:fixed fixes an element both vertically and horizontally, but I want my element only to remain horizontally fixed. That is, I want it to scroll vertically with the rest of ...

42. Dithering child elements' dimensions to fill a parent element    stackoverflow.com

Say I have a parent div with width 500px. It has 13 child elements that should fill its width. If I give each child element a width of 500 / 13 = ...

43. Unable to change the visibility of HTML elements    stackoverflow.com

I am trying to change the visisbility of a row of elements. I am supposed to display the elements only if the user selects the button. HTML code :

  <tr style="display:none">
  ...

44. CSS not assigned to a javascript created element - Why?    stackoverflow.com

I create an element by Javascript and apply it to another element, I also have a CSS File with styles for this new element, I check the code, the new element ...

45. How can I access unnamed elements from an HTML using javascript?    stackoverflow.com

I want to set float values for the first three li present in my HTML using javascript. I have named the parent ul as "something". Is it possible to set the ...

46. Element offsetHeight always "0"    stackoverflow.com

Why I am getting Element offsetHeight "0"? even element original height is not showing

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
/* Added for Menu  ...

47. How to locate the element within CSS using javascript    stackoverflow.com

The HTML elements' position are determined in a linked CSS.

div.title  
{  
position:absolute;  
top:12px;  
}
I can only use document.styleSheets[0].cssRules[0].position to find the value of the position ...

48. Can't get the initial values of an HTML CSS Element using javascript    stackoverflow.com

I'm trying to manipulate a div element. Although I have defined certain property values, I can't seem to get the initial values. Here's the problem: Fiddle I'm at the end of ...

49. styling elements with Javascript without being noticed    stackoverflow.com

I have a webpage which has content layout like 1,2,3 in markup (and also for no-js ) while visually I want it to be 2,3,1. I'm using Javascript (jQuery) to swap their position. ...

50. Make Child element appear outside of parent    stackoverflow.com

I have a slider on my page that has a height of 200px and has overflow hidden applied, inside this slider there are list items/images which are aall also 200px. When ...

51. CSS: Suppressing negative margins of child elements    stackoverflow.com

I have a parent element (e.g. a div) which surrounds some dynamic content. I would like the parent div to fully contain the child elements in as many circumstances as possible. ...

52. HTML: Is there any way to determine if an element is behind another element?    stackoverflow.com

We have an application with a search popup. You search for a term, and it finds them in the page and add a class to the word which in turn highlights ...

53. Read CSS property of an element using JavaScript    stackoverflow.com

So if there is a css file linked to a webpage like:

<link href="style.css" rel="stylesheet" type="text/css">
and i want to read a certain property, e.g a div has className='layout' and i want to ...

54. Blank parargraph HTML elements not shown    stackoverflow.com

Is there a way to get the browser to show a paragraph element even if it is empty? I am finding that if a p element has no text in it then ...

55. Stacking of elements using Javascript    stackoverflow.com

I have the following code for stacking of elements and on putting the cursor over an elemnt that element comes to the top. Here is the code.. It is not working for ...

56. Crop text inside an element    stackoverflow.com

The idea is to reduce text length to fit into a box of a specific size and append "..." at the end. The box is single line. It seems solutions I have ...

57. css: how to access a value that is not used by an element?    stackoverflow.com

I have a DIV that gets its height from a CSS class in a separate stylesheet. But that height is sometimes changed in Javascript. Can I read the CSS height direct ...

58. Some elements gets above the floating bar    stackoverflow.com

I am having problem with my floating navigation bar. The folating bar should be above everything but when I scroll through my webpage the form fields and some other elements of ...

59. Modifying list element CSS with Javascript    forums.digitalpoint.com

I'm working on a site that is going to have tabs similar to those you can find on the product pages of newegg.com. I'm wondering if I can make changes to a specific

  • elements CSS with Javascript. Normally, I use and ID to select the element that I am going to modify, and then use the javascript to define CSS ...

  • 60. How to access css elements with JavaScript for Firefox and Netscape browsers?    forums.digitalpoint.com

    Hi I am fairly new to JavaScript and I've got a really simple question. Its so elementary it is almost rediculous. I got a piece of html that contains a form which holds a picture. the picture is inside a tag. The form also contains a button which calls a javascript function. When the user clicks the button, the javaScript ...

    61. CSS not being applied to new elements    forums.devshed.com

    Hey there. Basically I have a css class that applies to a data table that I re-construct constantly. The problem is on page load, the "HOVER" property works, once a selection / criteria change has occurred, it not longer works, ALTHOUGH the rest of the properties are retained ( color, size, border, etc.. ) Any suggestions? Im posting this in the ...

    62. change css properties of all child elements    forums.devshed.com

    yeah, the color change is called on an event. i do have another question that maybe someone might help me tackle. I'm basically trying to do a pull down menu. You can check out what I'm trying to do here: http://www.texasmocktrial.org/concept/index.php the JS file is here: http://www.texasmocktrial.org/concept/templates/menu.js The script itself was open source that I downloaded. I'm trying to customize it ...

    63. Javascript func to change css element BG    forums.devshed.com

    Ok, here are two links to a site I am developing: http://tmh.netdbs.com/meyers2 (I am very happy with this page) http://tmh.netdbs.com/meyers2/gallery.htm (this page I have a question) You will see a link titled "Change Background". This is a ul relatively placed in an absolutely placed div. The li's for this ul each have a unique class defined, thus the multiple colors. I ...

    64. Prefixing HTML to element via CSS    devnetwork.net

    65. [SOLVED] edit html element of a css container...    phpfreaks.com

    not sure if I phrased that correctly but if I have this css container: #frame1 { position: relative; width: 90%; padding: 0; } #frame1 table { width: 1200px; } how do I edit the table of the container frame1 in javascript? you can obviously do this: document.getElementById("frame1").style.display = "block" but how would I change the width of ...

    66. How to display List elements horizontally(using CSS probably) in a JQTouch toolbar    sitepoint.com

    How to display List elements horizontally(using CSS probably) in a JQTouch toolbar I have a <'div'> element, containing a <'ul'> with four <'li'> elements. What I need to do is set the <'li'> to display in horizontal orientation, and within the <'div'>. When I apply the JTouch class="toolbar" to my <'div'>, what I see happening however is the the <'li'> elements ...

    67. Adding the !important css declaration to element(s) using JavaScript?    sitepoint.com

    On a totally unrelated note, I JUST posted the above -- 19 minutes ago, and that post just turned up in a Google search! Wow... that is the fastest [coincidental?] indexing ever. And if you're wondering, I'm completely logged out of all Google services, I don't use Google Desktop, and well... wow. Incredible.

    68. Changing pseudo-elements' CSS    sitepoint.com

    69. Passing CSS property values between elements using Javascript    sitepoint.com

    I see. I had a feeling it was someting like that. So with Javascript there is no way of actually retrieving the CSS 'background-color' property of a specific document element? I don't want to initialize it with script if I have to hardcode the colour. I want to be able to specify the colours in the CSS.

    java2s.com  | Contact Us | Privacy Policy
    Copyright 2009 - 12 Demo Source and Support. All rights reserved.
    All other trademarks are property of their respective owners.