Previous Message
Next Message

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

Sent by Chris Chen on 5 March 2007 07:07


--===============0125355912==
Content-Type: text/plain; format=flowed

>The modern way to do this, since a menu (even a horizontal one) is
>just a list of links, is to use the UL element as the wrapper.  The
>anchors then go in the LI elements within.  See for example the
>Listamatic site at http://css.maxdesign.com.au/listamatic/

COOL! I am happily switching <ul> + inline :-). One caveat is that inlined 
<li> introduced an unknown fixed padding that I have to compensate for via 
experiment (since I need to center the list in the middle). This is IE7.

Thanks,
Chris

_________________________________________________________________
Find what you need at prices you’ll love. Compare products and save at MSN® 
Shopping. 
http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701


--===============0125355912==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

______________________________________________________________________
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/
--===============0125355912==--
Previous Message
Next Message

Message thread:

Possibly related: