HighDots Forums  

problems in IE

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss problems in IE in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ste.paoletti@tiscali.it
 
Posts: n/a

Default problems in IE - 12-15-2005 , 10:00 AM






hi, is possible that in IE the selectors parent>child and
element[attributename=value] (or just element[attributename]) don't
work?
for the first case writing parent child(without ">") work, but if I
want select an element only if has particular attribute setted?
Someone can help me please?
thanks


Reply With Quote
  #2  
Old   
Johannes Koch
 
Posts: n/a

Default Re: problems in IE - 12-15-2005 , 10:07 AM






ste.paoletti (AT) tiscali (DOT) it wrote:

Quote:
hi, is possible that in IE the selectors parent>child and
element[attributename=value] (or just element[attributename]) don't
work?
Yes.

Quote:
for the first case writing parent child(without ">") work,
But it selects not only children but descendants in general.

Quote:
but if I
want select an element only if has particular attribute setted?
No luck without additional class/id.

Quote:
Someone can help me please?
Wait and hope for IE7.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Reply With Quote
  #3  
Old   
Steve Pugh
 
Posts: n/a

Default Re: problems in IE - 12-15-2005 , 10:10 AM



ste.paole... (AT) tiscali (DOT) it wrote:
Quote:
hi, is possible that in IE the selectors parent>child and
element[attributename=value] (or just element[attributename]) don't
work?
Correct. Not supported by IE.

Quote:
for the first case writing parent child(without ">") work,
Sort of.
parent child is the descendent selector whereas parent>child is the
child selector.
div>p {color: red;}
<div><blockquote><p>not red</p></blockquote></div>

div p {color: red;}
<div><blockquote><p>red</p></blockquote></div>

Quote:
but if I
want select an element only if has particular attribute setted?
You'll need to add a class (or id) attribute. Or use JavaScript (Google
for Dean Edwards' IE7 script library).

Steve



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.