Given:
<div><ul></ul></div>
I think
div {position: relative};
ul {
position: absolute;
top: 50%;
height: 5em;
margin-top: -2.5em;
}
does it. Or does the div need a height too? Okay, in this case it
would, since there's nothing *in* the div, but in a similar case,
where the div has other contents to give it an implicit height.
---Tim
OK it makes perfect sense, but I couldn't get it to work. I forgot to
mention that my div is actually floating left - could this be the
cause of unordered chaos?
Answers on a postcard to...
Thanks, CB
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/