Re: [WSG] Re: stylesheet switching in IE6
On Wed, 29 Dec 2004 22:36:26 +, Patrick H. Lauke <[EMAIL PROTECTED]> wrote: Erwin Heiser wrote: Ijust cracked it, IE was chocking on the lang="en" statement inside (in the XHTML code) in combination with this statement "div:lang(en)" in the style sheet. I remembered that IE doesn't suppport pseudo classes on anything but an anchor. For what it's worth, though, attribute selectors are not written like that. Sure, because they are not attribute selectors. Same document you mentioned defines lang pseudo-class: http://www.w3.org/TR/REC-CSS2/selector.html#lang Ofcourse IE doesn't support this either. -- regards, Kornel Lesiński ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
Re: [WSG] Re: stylesheet switching in IE6
Erwin Heiser wrote: Ijust cracked it, IE was chocking on the lang="en" statement inside (in the XHTML code) in combination with this statement "div:lang(en)" in the style sheet. I remembered that IE doesn't suppport pseudo classes on anything but an anchor. For what it's worth, though, attribute selectors are not written like that. It should have been: div[lang="en"] See http://www.w3.org/TR/REC-CSS2/selector.html#attribute-selectors -- Patrick H. Lauke _ re·dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
[WSG] Re: stylesheet switching in IE6
Title: Re: stylesheet switching in IE6 Ijust cracked it, IE was chocking on the lang="en" statement inside (in the XHTML code) in combination with this statement "div:lang(en)" in the style sheet. I remembered that IE doesn't suppport pseudo classes on anything but an anchor. Changing it to this: XHTML: dutch tect here CSS: div.nl { display: none; } div.en { display: block; }` solved it instantly ;-) Thanks again, Erwin.