-Original Message-
From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On
Behalf Of Thierry Koblentz
Sent: 30 October 2010 20:30
To: wsg@webstandardsgroup.org
Subject: RE: [WSG] A simple IE and JS detection method?
snip
On the second pahe I've checked
(http
] A simple IE and JS detection method?
On 10/29/10 2:13 AM, Foskett, Mike wrote:
[...]
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
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] A simple IE and JS detection method?
On 10/29/10 2:13 AM, Foskett, Mike wrote:
[...]
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
snip
On the second pahe I've checked
(http://www.projectseven.com/products/menusystems/pmm2/index.htm), I
found
these:
!--[if IE 7]
link href=/06_includes/ie7.css rel=stylesheet type=text/css
![endif]--
!--[if IE 6] link href=/06_includes/ie6.css rel=stylesheet
type=text/css
On 11/1/10 3:15 AM, Foskett, Mike wrote:
Hi David,
How, without using conditional comments at all, do I target IE
6,7, and 8
I was asking how I'd be able to target all three *without* any
CCs.
Add an extra script line?
script type=text/javascript/*![CDATA[*/var
How, without using conditional comments at all, do I target IE
6,7, and 8
I was asking how I'd be able to target all three *without* any
CCs.
Using the basic filters you could go this route:
http://tjkdesign.com/lab/ie-filters.asp
For version 9+, nothing's sure ;-)
--
Regards,
Thierry
On 02.11.2010 04:48, Thierry Koblentz wrote:
Using the basic filters you could go this route:
http://tjkdesign.com/lab/ie-filters.asp
...which are similar to those I presented earlier ... without all the
safeguarding and wrapping i use to keep uninformed people from using
such hacks all over
On 10/29/10 3:22 PM, G.Sørtun wrote:
On 29.10.2010 23:33, David Hucklesby wrote:
Perhaps you know of a browser-safe filter for IE8?
Don't know about safe, but maybe you can find what you need here...
http://www.gunlaug.no/contents/styles/target-browser.css
Thank you, Georg. Your valuable
On 10/30/2010 11:58 AM, David Hucklesby wrote:
On 10/29/10 3:22 PM, G.Sørtun wrote:
On 29.10.2010 23:33, David Hucklesby wrote:
Perhaps you know of a browser-safe filter for IE8?
Don't know about safe, but maybe you can find what you need here...
Thank you, Georg. Your valuable comments in that file actually
convinced
me to stay with the Paul Irish CCs method. It just seems safer, as
well as relatively easy to understand. After all, this:
.ie8 .hacked-element {...}
seems to me clearer than
@media all {
html:lang(en)
On 10/30/2010 3:29 PM, Thierry Koblentz wrote:
Add more complexity? Really? I can always remember the syntax for the two or
three CSS filters I use, while I'm never 100% sure how to properly write
CCs.
I simply expressed an opinion, as you did. Readers can choose to agree
or disagree with
On 29 October 2010 16:56, David Dorward da...@dorward.me.uk wrote:
On 28 Oct 2010, at 17:31, Foskett, Mike wrote:
Since querying here I've had difficulty validating code with a class on
the html element.
Am I incorrect in the belief that it should actually be valid?
The class
On 29 October 2010 16:21, David Hucklesby huckle...@gmail.com wrote:
On 10/28/10 5:25 PM, Mathew Robertson wrote:
I'll stick my neck out and say... dont do it for the CSS bit...
specifically, you should be asking - What is the point of adding a
specific class to html/body for a specific
On 29 Oct 2010, at 09:49, Mathew Robertson wrote:
Browsers support expando elements (aka, you can bind properties into the DOM
object), so adding a class attribute is valid
Valid has a specific technical meaning when dealing with SGML and XML. What
browsers supports isn't it.
--
David
On 29 October 2010 20:01, David Dorward da...@dorward.me.uk wrote:
On 29 Oct 2010, at 09:49, Mathew Robertson wrote:
Browsers support expando elements (aka, you can bind properties into the
DOM object), so adding a class attribute is valid
Valid has a specific technical meaning when
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
why did I get this set of 5 replies to this thread 12 times?
did any body else get it 12 times, too?
cs
***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe:
On 10/29/10 2:13 AM, Foskett, Mike wrote:
[...]
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}
Precisely. I was asking how I'd be
goes against the separation of the three layers
No it doesn't, it's purely presentational.
No better or worse than li class=last
imho, CCs have nothing to do with the presentational layer, they are part of
the structural layer and they are junk markup if you ask me :)
--
Regards,
Thierry
On 10/29/10 12:05 PM, Thierry Koblentz wrote:
goes against the separation of the three layers
No it doesn't, it's purely presentational. No better or worse
thanli class=last
imho, CCs have nothing to do with the presentational layer, they are
part of the structural layer and they are junk
On 29.10.2010 23:33, David Hucklesby wrote:
Perhaps you know of a browser-safe filter for IE8?
Don't know about safe, but maybe you can find what you need here...
http://www.gunlaug.no/contents/styles/target-browser.css
regards
Georg
Take it you pulled this from HTML5 Boilerplate's latest update. Reading
through Paul Irish's comments on the update (
http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/)
the change makes sense.
On Thu, Oct 28, 2010 at 7:21 AM, Foskett, Mike
Mike,
You might find it easier to use the Modernizr script to detect
JavaScript (amongst other tests it runs to see the capabilities of a
browser) and then apply a similar method to what you have described
here, but on the body tag instead.
!DOCTYPE html
html lang=en dir=ltr class=no-js
Mike,
I like it.
You have styled the body element as an example. Would you need to
style every element in the document using this technique, or would
inheritance deal with the other elements? Sorry if the answer is obvious
but I'm not a JavaScript guru ...
Regards,
Grant Bailey
Of Ty Hatch
Sent: 28 October 2010 16:15
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] A simple IE and JS detection method?
Take it you pulled this from HTML5 Boilerplate's latest update. Reading through
Paul Irish's comments on the update
(http://paulirish.com/2008/conditional-stylesheets-vs-css
On 10/28/10 9:31 AM, Foskett, Mike wrote:
Since querying here I've had difficulty validating code with a class on the
html element.
Am I incorrect in the belief that it should actually be valid?
Yes, you're incorrect. :-)
Which could have been quickly answered by reading the recommendation.
I'll stick my neck out and say... dont do it for the CSS bit...
specifically, you should be asking - What is the point of adding a specific
class to html/body for a specific browser? In particular, using this
technique discourages the whole graceful degradation thing. And it adds
complexity to
On 10/28/10 5:25 PM, Mathew Robertson wrote:
I'll stick my neck out and say... dont do it for the CSS bit...
specifically, you should be asking - What is the point of adding a
specific class to html/body for a specific browser? In particular,
using this technique discourages the whole graceful
It must've come from that article, it looks vaguely familiar.
Personally I saw it as a furtherance to the hasJS technique.
My perspective was to remove separate style sheets, and obscure hacks, purely
to simplify editing exactly as Paul Irish's article states.
Without using * html and
29 matches
Mail list logo