Previous Message
Next Message

What's the proper way to vertically center an element within its parent?

Sent by david on 5 March 2007 18:06


Chris Chen wrote:
>> [snip] There are prettier ways to do it
>> too, if you're worried about your source looking nice.  One way that I 
>> use is:
>>
>>    <li><a href="#">Foo</a></li><!--
>> --><li><a href="#">Bar</a></li>
> 
> That's neat. Could you advise why this comment trick work, and how 
> widely does it work across browsers?

Don't know about that, but I've seen formations like this used a lot:

<li>something here</
li><li>something here</li>

-- 
David
[EMAIL-REMOVED]
authenticity, honesty, community
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: