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

Realy stuck on child selectors :(

P: n/a
I tried everything. I even tested it in combination with opera and mozilla.
(I use IE 6 mostly)
It's reduced to the simple example below.

Please tell me what is wrong with my understaning of child selectors! I
realy dont know :(

<html>
<head>
<style>
p > span { background-color: blue }
</style>
</head>
<body>
<p>
hello
<span>why isnt this blue? </span>
hello
</p>
</body>
</html>
Thank you,
Tom
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sorry for the duplicate guys.

"news.pandora.be" <tm***@hotmail.com> wrote in message
news:sL*******************@phobos.telenet-ops.be...
I tried everything. I even tested it in combination with opera and mozilla. (I use IE 6 mostly)
It's reduced to the simple example below.

Please tell me what is wrong with my understaning of child selectors! I
realy dont know :(

<html>
<head>
<style>
p > span { background-color: blue }
</style>
</head>
<body>
<p>
hello
<span>why isnt this blue? </span>
hello
</p>
</body>
</html>
Thank you,
Tom

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.