/    Sign up×
Community /Pin to ProfileBookmark

Adjacent sibling (+) in IE

Does anyone know how to simulate the adjacent sibling selector for IE? From my tests, it does not seem as if it is supported (using IE 6).

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisAug 24.2004 — http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors

The question would be whether IE 6 supports CSS 2.1 or not.
Copy linkTweet thisAlerts:
@MstrBobAug 24.2004 — [i]Originally posted by gil davis [/i]

[B]http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors



The question would be whether IE 6 supports CSS 2.1 or not. [/B]
[/QUOTE]


The answer to wether or not IE supports CSS 2.1 is "sort of". The IE development team basically "picked and choosed" what they wanted to support from the CSS 2 spec. There is no CSS method of doing this, because IE isn't standards-compliant. However, I know that IE has these little known things called "Behaviors". Erm, I no very little about them, and I'm unsure wether or not they can replicate this. But I know that they can be used to replicate things like the pseudo class :hover for elements other than links.

http://msdn.microsoft.com/workshop/author/behaviors/overview.asp
×

Success!

Help @wood_tah spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...