Quote:
Originally Posted by juggledad
In English that says 'apply a background color red to the HTML element 'widget–title'
that is a sub-element of an HTML element 'widget_text',
which is a sub-element of the HTML element 'widget',
which is a sub-element of an HTML element with an ID of text–3.
Not quite what you were meaning to say I would guess.
|
--actually, that is exactly what i meant to say. though i took your comment to mean otherwise and started by eliminating the middle-man selector. it worked.
Quote:
Originally Posted by juggledad
I suggest you run through a CSS tutorial (good one can be found at HTTP://htmldog.com)so you'll have an idea of how to write CSS.
|
nice resource, wish i had known of it way back when i was learning all the stuff it talks about.
the closest thing to my issue was the section on grouping and nesting. however, it didn't mention anything about how to determine when one should go straight from point a (text–3) to point c (widget_text), or take the long way 'round and include all--or just some--things in between. i'd've kept including it had you not already intimated i should do otherwise. so, i'm still a bit foggy in that respect.
@larry, thanks. i was wondering whether or not to include # and . after the first selector designation. i probably tried it both ways, but with the extra selector in there it was moot. i was able to combine your tip with what i learned above to make it all work.
thank you both for your time and assistance. :-)