HighDots Forums  

child selector not working on ie ?

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


Discuss child selector not working on ie ? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Sharman
 
Posts: n/a

Default child selector not working on ie ? - 03-02-2006 , 03:45 AM






See http://services.ccagroup.co.uk/testform.htm

Looks as intended in firefox, is valid (bulk of inputs centred in a div
occupying the left half of the page).

ie ignores the child selector, positioning everything aligned left.

I'm familiar with http://w3development.de/css/hide_css_from_browsers/
I thought the ie child selector bug only occurred where there were no
spaces (parent>child) - I'd thought it worked when there were (parent >
child).
Apparently not - or am I missing something ?
http://services.ccagroup.co.uk/testform2.htm (&css) are identical apart
from the omission of ">".

Chris

Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: child selector not working on ie ? - 03-02-2006 , 04:52 AM






Chris Sharman wrote:

Quote:
ie ignores the child selector, positioning everything aligned left.
Yes. IE doesn't support selectors introduced in CSS 2.

Quote:
I thought the ie child selector bug only occurred where there were no
spaces (parent>child) - I'd thought it worked when there were (parent
child).
I have a feeling that if there are spaces then it might treat it like a
descendent selector - but don't quote me on that.

I think Dean Edward's script will hack child selector support into IE.
Another option is:

foo bar { /* Set */ }
foo * bar { /* Reset to status before setting */ }



Reply With Quote
  #3  
Old   
Chris Sharman
 
Posts: n/a

Default Re: child selector not working on ie ? - 03-03-2006 , 02:41 AM



David Dorward wrote:
Quote:
Chris Sharman wrote:

ie ignores the child selector, positioning everything aligned left.

Yes. IE doesn't support selectors introduced in CSS 2.
Ah. OK. http://w3development.de/css/hide_css_from_browsers/ could
probably do with clarifying then - it misled me.

Quote:
I thought the ie child selector bug only occurred where there were no
spaces (parent>child) - I'd thought it worked when there were (parent
child).

I have a feeling that if there are spaces then it might treat it like a
descendent selector - but don't quote me on that.
Doesn't seem to.
I can work around it - just need to be careful with precedence.

Thanks
Chris


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.