By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,574 Members | 3,021 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,574 IT Pros & Developers. It's quick & easy.

Adjacent selectors not supported in any MSIE?

P: n/a
Brian Wilson's Index Dot CSS at
<http://www.blooberry.com/indexdot/css/supportkey/syntax.htm> says
that no version of MSIE supports adjacent sibling selectors, such as
p+p.

Is that actually true?

I use p+p pretty extensively, because I like the first paragraph of
a group to be flush left and with a top margin, while later
paragraphs in a group are indented and have a zero top margin.
Example:
http://www.acad.sunytccc.edu/instruc...at/project.htm
Under "Sample Size" the first three paragraphs should be grouped as
described above (and they are, in Mozilla and Opera).

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
In article <MP************************@news.odyssey.net>,
Stan Brown <th************@fastmail.fm> wrote:
Brian Wilson's Index Dot CSS at
<http://www.blooberry.com/indexdot/css/supportkey/syntax.htm> says
that no version of MSIE supports adjacent sibling selectors, such as
p+p.

Is that actually true?


IE5/Mac understands it. That's it.

--
Kris
kr*******@xs4all.netherlands (nl)
Jul 20 '05 #2

P: n/a
In article <kr*****************************@news1.news.xs4all .nl> in
comp.infosystems.www.authoring.stylesheets, Kris
<kr*******@xs4all.netherlands> wrote:
In article <MP************************@news.odyssey.net>,
Stan Brown <th************@fastmail.fm> wrote:
Brian Wilson's Index Dot CSS at
<http://www.blooberry.com/indexdot/css/supportkey/syntax.htm> says
that no version of MSIE supports adjacent sibling selectors, such as
p+p.

Is that actually true?


IE5/Mac understands it. That's it.


[bitter tone of voice] That's frickin' amazing.

(I'm ticked at Microsoft, not at you.)

Just today I did a search at Microsoft's site and found something
about Microsoft's realizing its commitment to make IE _4_ support
style sheets fully. I knew there were some dark corners, but p+p???

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3

P: n/a
Stan Brown wrote:
Brian Wilson's Index Dot CSS at
<http://www.blooberry.com/indexdot/css/supportkey/syntax.htm>
says that no version of MSIE supports adjacent sibling
selectors, such as p+p.

[bitter tone of voice] That's frickin' amazing.


I sympathize with the bitterness. But I don't think that MSIE/Win's
shortcomings could suprise me any more.
Just today I did a search at Microsoft's site and found something
about Microsoft's realizing its commitment to make IE _4_ support
style sheets fully. I knew there were some dark corners, but p+p???


It forces one to use the class attribute more often than would
otherwise be necessary, and even then precludes using css in certain
situations.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4

P: n/a
In article <MP************************@news.odyssey.net>,
Stan Brown <th************@fastmail.fm> wrote:
that no version of MSIE supports adjacent sibling selectors, such as
p+p.

Is that actually true?


On the bright side, if you write p+p, Windows IE ignores the selector.
If you write p + p, Windows IE 5.0 treats the selector as p.

--
Henri Sivonen
hs******@iki.fi
http://www.iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.