On 01/03/06, Michel Sabatino <[EMAIL PROTECTED]> wrote:
> #content{
> width:540px;
> padding:20px;
> }
> html>body #content{width:500px;}
> Can somebody explain me briefly the last line : html>body #content
> Why declare the width in this declaration and not above?
Internet Explorer can't
Christian Heilmann wrote:
> I beg to differ, there is nothing old or IE centric about this
> approach. You simply define something for a browser that does not
> understand the child selector and override/enhance it for those that
> do. That is nothing hacky or bad, it is simply the CSS equivalen
> > Can somebody explain me briefly the last line : html>body #content
> > Why declare the width in this declaration and not above?
> That's an old method for hiding styles from IE/win, as IE/win-versions
> up to and including IE6 don't understand the '>' selector. Won't work in
> IE7.
I beg to di
Michel Sabatino wrote:
> html>body #content{width:500px;}
> Can somebody explain me briefly the last line : html>body #content
> Why declare the width in this declaration and not above?
That's an old method for hiding styles from IE/win, as IE/win-versions
up to and including IE6 don't understa
D] On Behalf Of Michel
Sabatino
Sent: March 1, 2006 11:10 AM
To: CSS discuss
Subject: [css-d] An explanation..
Hi to all.
Here some code :
#content{
float:left;
width:540px;
text-align:left;
padding:20px;
background:#fff;
}
html>body #content{width:500px;}
Can somebody ex
Hi to all.
Here some code :
#content{
float:left;
width:540px;
text-align:left;
padding:20px;
background:#fff;
}
html>body #content{width:500px;}
Can somebody explain me briefly the last line : html>body #content
Why declare the width in this declaration and not above?
Tha