bcatt
06-27-2008, 07:17 PM
I want to select all children of a particular element to apply a style to, in particular, I would like to use this for positioning, where the parent element has relative positioning and the children have absolute positioning based on the parent. Does it have to look like so:
#top > p, a, div {position: absolute}
or is there and easier way where I can just say "select ALL children of this element and apply this style"?
Also, this particular div is not resizing itself to fit the child elements, while the children take up about 200X700 px of space, the div itself (when a border is added to make the size visible) is only a double line across the top of the page.
#top > p, a, div {position: absolute}
or is there and easier way where I can just say "select ALL children of this element and apply this style"?
Also, this particular div is not resizing itself to fit the child elements, while the children take up about 200X700 px of space, the div itself (when a border is added to make the size visible) is only a double line across the top of the page.