Re: [jQuery] OT: CSS Conditional Comments

2007-01-25 Thread Olaf Bosch
Aaron Heimlich schrieb: I don't recall whether IE Mac can read conditional comments, but it shouldn't matter much considering it's pretty much dead and gone by now. The IE Mac ignore CC's -- Viele Grüße, Olaf --- [EMAIL PROTECTED] http://olaf-bosch.de

Re: [jQuery] OT: CSS Conditional Comments

2007-01-25 Thread Klaus Hartl
Ⓙⓐⓚⓔ wrote: sure looks right! IE is disgusting, as so are conditional comments! I prefer to kludge IE all at once in an if ($.browser.msie) block , and even load in a different style sheet for those crazy browsers! I read a way that IE naturally ignores some css (without conditional

Re: [jQuery] OT: CSS Conditional Comments

2007-01-25 Thread Klaus Hartl
Olaf Bosch wrote: Aaron Heimlich schrieb: I don't recall whether IE Mac can read conditional comments, but it shouldn't matter much considering it's pretty much dead and gone by now. The IE Mac ignore CC's Yes, IE Mac is (was) a completely different browser (apart from the name). If

Re: [jQuery] OT: CSS Conditional Comments

2007-01-25 Thread Klaus Hartl
Ⓙⓐⓚⓔ wrote: Micheal, so that only works with inline styles? On 1/24/07, Michael Geary [EMAIL PROTECTED] wrote: !-- ... - is an HTML comment, not a CSS comment. So, conditional comments go in your HTML code, not in CSS code. div.SiteHeader{ border: 1px solid #336566; /*AA*/

[jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Christopher Jordan
Sorry for the off-topic post, but I know that css tends to get discussed a lot around here, and I'm sure someone here will know what I'm doing wrong. Okay, so I've got a div that contains a single p tag. In FF 2.0.0.1 this text is vertically centered inside the div. In IE 6, it is not. So, I can

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Ⓙⓐⓚⓔ
sure looks right! IE is disgusting, as so are conditional comments! I prefer to kludge IE all at once in an if ($.browser.msie) block , and even load in a different style sheet for those crazy browsers! I read a way that IE naturally ignores some css (without conditional comments) that a new

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Michael Geary
!-- ... - is an HTML comment, not a CSS comment. So, conditional comments go in your HTML code, not in CSS code. div.SiteHeader{ border: 1px solid #336566; /*AA*/ width: 850px; background-color: #E3F0D6; /*D5F0D5,CDD9E5*/ height: 60px; text-align: left; margin:

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Ⓙⓐⓚⓔ
Micheal, so that only works with inline styles? On 1/24/07, Michael Geary [EMAIL PROTECTED] wrote: !-- ... - is an HTML comment, not a CSS comment. So, conditional comments go in your HTML code, not in CSS code. div.SiteHeader{ border: 1px solid #336566; /*AA*/ width: 850px;

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Karl Swedberg
That's right, and it often makes sense to put all of your IE-only styles in a separate stylesheet. So, in the HTML head you might have something like this: link rel=stylesheet type=text/css href=/css/default.css / !--[if lte IE 6] link rel=stylesheet type=text/css href=/css/ie6.css

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Ⓙⓐⓚⓔ
I found this quote on the net... it may help While still in main CSS file, hacked selectors start with * html. This is known as the 'star-HTML' hack. Standard compliant browsers ignore this selector, because there's actually no elements above html in a document tree. Luckily, IE doesn't know that

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Blair McKenzie
You need to put your IE specific css in a separate css file and put the html link to that file inside the conditional comments. If you want to put IE specific css settings inside your css file, you can use a hack (hack = not supported. MS has committed to supporting conditional comments). One of

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Michael Geary
!-- ... - is an HTML comment, not a CSS comment. So, conditional comments go in your HTML code, not in CSS code. Michael, so that only works with inline styles? You can use them with any HTML code. Inline style tags, link tags, script tags, whatever. Do a View Source on www.zvents.com for

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Ⓙⓐⓚⓔ
So the sum total is to use conditional comments around the link to a separate css for IE. And possibly more than one for more problems with each version. Hopefully you're using some content management or server side includes or the like to make it site wide.

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Sam Collett
On 25/01/07, Christopher Jordan [EMAIL PROTECTED] wrote: Sorry for the off-topic post, but I know that css tends to get discussed a lot around here, and I'm sure someone here will know what I'm doing wrong. Okay, so I've got a div that contains a single p tag. In FF 2.0.0.1 this text is

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Aaron Heimlich
On 1/25/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: So the sum total is to use conditional comments around the link to a separate css for IE. Actually, you can use conditional comments around any HTML (but only HTML) -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Aaron Heimlich
On 1/25/07, Aaron Heimlich [EMAIL PROTECTED] wrote: Actually, you can use conditional comments around any HTML (but only HTML) That means that both of these are valid: style type=text/css #foo { /* do stuff for every browser...*/ } /style !--[if lte IE 6] style type=text/css