By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,763 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

* html>body hack?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.