| Author |
Child selectors? I dont get it :(
|
|
| news.pandora.be 2004-02-22, 2:28 am |
| 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
| |
| Spartanicus 2004-02-22, 5:28 am |
| "news.pandora.be" <tmspm@hotmail.com> wrote:
>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>
Works here (Opera), won't work in IE as it doesn't support child
selectors.
--
Spartanicus
| |
|
|
Spartanicus wrote:
> "news.pandora.be" <tmspm@hotmail.com> wrote:
>
>
>
>
> Works here (Opera), won't work in IE as it doesn't support child
> selectors.
And if you were using it on purpose to hide it from IE, than
avoid the spaces around >, for IE5.0 will apply the style if
you leave spaces.
--
Els
Mente humana é como pára-quedas; funciona melhor aberta.
| |
| Stephen Poley 2004-02-22, 6:28 am |
| On Sun, 22 Feb 2004 06:12:41 GMT, "news.pandora.be" <tmspm@hotmail.com>
wrote:
>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>
What version of Opera did you test? It's blue in Opera 6.05 and 7.23.
IE doesn't understand child selectors though. They've only been around
for about 6 years, and Microsoft can't react that fast.
--
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/
| |
| Barbara de Zoete 2004-02-22, 7:28 am |
| Stephen Poley wrote:
> On Sun, 22 Feb 2004 06:12:41 GMT, "news.pandora.be" <tmspm@hotmail.com>
> wrote:
>
>
^
[color=darkred]
> What version of Opera did you test? It's blue in Opera 6.05 and 7.23.
> IE doesn't understand child selectors though. They've only been around
> for about 6 years, and Microsoft can't react that fast.
Could it be it's just the ';' thats missing? (not tested)
--
Barbara
http://home.wanadoo.nl/b.de.zoete/html/weblog.html
http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html
| |
|
|
|
|
Barbara de Zoete wrote:
> Els wrote:
>
>
>
> Really? I never knew this. Now why on earth die M$ mess this up in the
> release of IE6.0?
No, 5.5 already :-)
I think that IE5.0 doesn't really understand it, but fails
to see the >.
Then 5.5 saw it, but doesn't understand so doesn't apply,
idem for 6.0.
But that's just my thinking, as I'm not sure if IE 5.0
really gets the difference between just the child or another
descendant.
--
Els
Mente humana é como pára-quedas; funciona melhor aberta.
| |
| Lauri Raittila 2004-02-22, 7:29 am |
| In article Barbara de Zoete wrote:
> Els wrote:
>
> Really? I never knew this. Now why on earth die M$ mess this up in the
> release of IE6.0?
No, IE5 will interpret "foo > bar" like "foo bar" that is incorrect too.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
| |
| Alan J. Flavell 2004-02-22, 8:28 am |
| On Sun, 22 Feb 2004, Barbara de Zoete wrote:
> Now why on earth [did] M$ mess this up
If we could answer *that* kind of question, we wouldn't be here on
usenet, I suspect. SCNR.
| |
|
| Lauri Raittila wrote:
>
>
> No, IE5 will interpret "foo > bar" like "foo bar" that is incorrect
> too.
IE5/*Win* will interpret foo > bar as "foo bar"...
--
Brian (remove "invalid-remove" to email me)
http://www.tsmchughs.com/
| |
| Stan Brown 2004-02-22, 9:29 am |
| It seems "news.pandora.be" wrote in
comp.infosystems.www.authoring.stylesheets:
>(I use IE 6 mostly)
>
>Please tell me what is wrong
Some questions answer themselves. :-)
Seriously, IE has really dreadful CSS support. Child selectors don't
work at all, for instance.
This is one of the big frustrations about writing for the Web. There
is often a simple, straightforward, standard way to do something;
but because stoopid Microsoft doesn't support it we have to choose
between doing it a different (complex, obfuscated) way or having it
work only for the savvy minority of visitors.
--
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/
| |
|
|
| Timothy Madden 2004-02-22, 9:29 am |
| Stan Brown wrote:
>
> Some questions answer themselves. :-)
>
> Seriously, IE has really dreadful CSS support. Child selectors don't
> work at all, for instance.
Can you blame anyone for using IE6 ? I mean what could we do ?
I really tried Netscape, which I couldn't believe it's free, but it has
drawbacks anacceptable for me :(
it has a horrible fullscreen mode, which it happens I use often to read
docs (it locks my autohide taskbar, the fullscreen is not really *full*
screen and it has no automenus and toolbar) and it has his own Favourites
(or bookmarks). Why doesn't it get also the Windows Explorer favourites ?
Sorry, I know this is off-topic
| |
| Timothy Madden 2004-02-22, 9:29 am |
| Stan Brown wrote:
>
> Some questions answer themselves. :-)
>
> Seriously, IE has really dreadful CSS support. Child selectors don't
> work at all, for instance.
Can you blame anyone for using IE6 ? I mean what could we do ?
I really tried Netscape, which I couldn't believe it's free, but it has
drawbacks anacceptable for me :(
it has a horrible fullscreen mode, which it happens I use often to read
docs (it locks my autohide taskbar, the fullscreen is not really *full*
screen and it has no automenus and toolbar) and it has his own Favourites
(or bookmarks). Why doesn't it get also the Windows Explorer favourites ?
Sorry, I know this is off-topic
--
Thank you
Timothy Madden
---------------------------
And I don't wanna miss a thing
| |
|
| Timothy Madden wrote:
>
> Can you blame anyone for using IE6 ?
Blame? no. But I wouldnt' recommend it.
> Sorry, I know this is off-topic
Yes, it is. You might try asking about such things in a Netscape group.
I would have emailed you with more about Netscape, but I cannot figure
out if your email address is real or not. It looks fake. (If you want to
the response, email me, but remove "invalid" from the end of my email
address.)
--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
| |
| Tom Pester 2004-02-22, 6:04 pm |
| Thx for all the replies guys. It seems this is a nice usenet group :)
IE just doesnt support child selectors. It's a shame that MS doenst make
this work.
I recommend Opera cause it has good css support and I use IE only if the
site doesnt support opera.
These sites are mostly owned by MS. Probably no coincidence.
Its free if you can live with the banner. Defenitly worth a try!
"news.pandora.be" <tmspm@hotmail.com> wrote in message
news:tLXZb.9450$Lr5.25626@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
>
>
| |
|
| How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post
Tom Pester wrote:
>
> IE just doesnt support child selectors.
IE/*Win* doesn't support child selectors, you mean.
> It's a shame that MS doenst make this work.
A shame, yes. But shoddy css support is the least of its sins.
> I recommend Opera cause it has good css support
> [...]
> Its free if you can live with the banner. Defenitly worth a try!
You're preaching to the choir.
> and I use IE only if the site doesnt support opera.
> These sites are mostly owned by MS. Probably no coincidence.
That's what faked referrer headers are for.
--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
| |
| Tom Pester 2004-02-22, 9:29 pm |
|
"Brian" <usenet3@julietremblay.com.invalid> wrote in message
news:koa_b.103162$uV3.584881@attbi_s51...
> How am I supposed to post my replies in a newsgroup?:
> [url]http://allmyfaqs.com/faq.pl?How_to_post[/url]
>
> Tom Pester wrote:
>
> IE/*Win* doesn't support child selectors, you mean.
So the mac version supports it? That doesnt help much :s
>
> A shame, yes. But shoddy css support is the least of its sins.
>
>
> You're preaching to the choir.
>
>
> That's what faked referrer headers are for.
I think you mean faking your "user agent"
>
> --
> Brian (remove "invalid" from my address to email me)
> [url]http://www.tsmchughs.com/[/url]
| |
| Brian 2004-02-23, 11:30 am |
| Tom Pester wrote:
>
> I think you mean faking your "user agent"
Yep.
--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |