Previous Message
Next Message

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

Sent by Chris Chen on 5 March 2007 18:06


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

>It should work in all browsers.  As for how it works, you know how if
>you have something like:
>
>Foo
>            Bar
>
>in your HTML, it will render as Foo Bar, and not FooBar?  It reduces
>multiple spaces, tabs, linebreaks, etc down to one space.  IE is doing
>that with the linebreak and any indentation you have between the list
>items, so you're getting <li></li>[space]<li></li>.
>
>The comment turns that into <li></li><!--[space]--><li></li> so that
>the space is commented, and not rendered.

Neato. Thanks!

Chris

_________________________________________________________________
Win a Zune™—make MSN® your homepage for your chance to win! 
http://homepage.msn.com/zune?icid=hmetagline


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

Message thread: