472,121 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

child selector not working on ie ?

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
Mar 2 '06 #1
2 2004
Chris Sharman wrote:
ie ignores the child selector, positioning everything aligned left.
Yes. IE doesn't support selectors introduced in CSS 2.
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 */ }

Mar 2 '06 #2
David Dorward wrote:
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.
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
Mar 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Don Bate | last post: by
19 posts views Thread by Thomas Mlynarczyk | last post: by
7 posts views Thread by Dan | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.