467,161 Members | 1,066 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

* html>body hack?

Hi All,

I came across this CSS while researching CSS only (no tables) layouts:

* html>body .clearfix {
display: inline-block;
width: 100%;
}

What browser is that targeting?

My understanding is that * html targets any version of IE, and that
html body is ignored by IE 6 and below.

Isn't this a contradiction? I've tried IE7, IE6, Firefox 1.5, Opera 9
and Safari 2 -- none of them process this rule.

What browser will recognize it?

- Bryan

Mar 9 '07 #1
  • viewed: 4859
Share:
2 Replies
Bryan wrote:
>
* html>body .clearfix {
display: inline-block;
}

What browser is that targeting?
Mac IE

WinIE to v6 and MacIE support *html. WinIE doesn't support child
selectors, though, so only MacIE applies those rules.

BTW, display:inline-block in MacIE is commonly set for stretching a
float's container.

--
Berg
Mar 9 '07 #2
On Mar 9, 7:38 pm, Bergamot <berga...@visi.comwrote:
Mac IE

WinIE to v6 and MacIE support *html. WinIE doesn't support child
selectors, though, so only MacIE applies those rules.

BTW, display:inline-block in MacIE is commonly set for stretching a
float's container.

--
Berg
Excellent! Thank you for that tip, Berg.

Mar 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Ben | last post: by
4 posts views Thread by Gilles Lenfant | last post: by
15 posts views Thread by Matthias Hullin | last post: by
6 posts views Thread by Joerg Battermann | last post: by
2 posts views Thread by taras.di@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.