Thanks David,
My impression that it's valid to add a class to the html element was true.
I know that you should not actually apply a style to it though.
Hi Kurtis,
> I think that it's positively Byzantine.
> Why do you need or want to do this?
I manage, create and update hundreds of unique content pages.
I must assume that every developer uses Firefox / Firebug combination to build
/ hack / test pages.
Having separate overriding style sheets is a nightmare for maintenance.
A single sheet, or even better in the document head, improves efficiency.
Hi Thierry,
> how far people are willing to go to have their styles sheets validate.
Couldn't agree more.
> goes against the separation of the three layers
No it doesn't, it's purely presentational.
No better or worse than <li class="last">
> What's wrong with the *property and _property hack?
Nothing at all in my eyes.
I prefer this technique compared to the "more correct" * html and *+html.
And your argument is sound.
Though increased specificity is the whole point.
David,
> How, without using conditional comments at all, do I target IE 6,7, and 8
>From the example:
bg {background: #fff}
.IE6 bg,
.IE7 bg { filter: progid: etc...}
.IE8 bg { -ms-filter:" progid: etc"}
Though I personally for what you're asking I'd do it in one style rule like
this:
.gradientBg {
background:#f1f0f3;
background-image: -webkit-gradient(linear, left top, left bottom,
color-stop(0, #f8f7fa), color-stop(1, #cfcbd8));
background-image: -moz-linear-gradient(rgba(248,247,250, 1) 0%,
rgba(207,203,216, 1) 100%);
filter:
progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFf8f7fa,
endColorstr=#FFcfcbd8);
-ms-filter:"
progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFf8f7fa,
endColorstr=#FFcfcbd8))";
}
Covers everything you ask plus Firefox, Safari and IE8+.
Mathew,
> What is the point of adding a specific class to html/body for a specific
> browser?
Purely to tweak presentation for IE6 mostly but yesterday I had to tweak IEv8.
Try and tweak IE8 specifically without the suggested method.
Example:
a.closeLink {display:block; font:bold large/1 arial,sans-serif;
padding:0 0.23em; position:absolute; right:4px; text-decoration:none; top:4px;}
.IE8 a.closeLink {top:14px; right:-4px}
Because the div has a drop shadow, via -ms-filter in IEv8. The placement of the
close link was messed up.
> Its an idea which can be used, but that doesn't mean all ideas are good ideas.
Very true hence the posting.
Grant,
> Would you need to style every element in the document>
Certainly not, just the styles which require tweaking
Regards
Mike Foskett
http://websemantics.co.uk/
________________________________
This is a confidential email. Tesco may monitor and record all emails. The
views expressed in this email are those of the sender and not Tesco.
Tesco Stores Limited
Company Number: 519500
Registered in England
Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8 9SL
VAT Registration Number: GB 220 4302 31
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************