XHtml Strict, Float: Center ?
Posted
by Axel Myers
on Stack Overflow
See other posts from Stack Overflow
or by Axel Myers
Published on 2010-04-06T08:40:24Z
Indexed on
2010/04/06
8:43 UTC
Read the original article
Hit count: 397
Hi everyone. I'm having hard time with Xhtml Strict 1.0 and Css. And I'm almost out of solutions.
My Site Url: http://www.pro-turk.net/beta/
I made a jquery multilevel dropdown menu for my site.
It looks like OK, but I have used inline-block property of css display attribute on navigation menu which is a part of css 2.1 and isn't supported by some browsers (including ie6 and ie7).
I want to make #nav > li elements block level elements, but to do this and having all of them in same line, the only way is using float in #nav > li. But I want to center them in their parent (the menu bar). So I need something like float:center (I know it's pretty stupid and doesn't exist). But is there a way to include block level elements as children elements without linebreaks (I mean without making a block level element).
Regards.
© Stack Overflow or respective owner