Dave,
On Apr 24, 2007, at 2:33 AM, Dave M G wrote:
> I hadn't accurately described my code. My code actually looks like
> this:
>
> <div id="test">
> <span>I don't want this seen</span>
> <ul>
> <li><span>a list thing</span></li>
> </ul>
> </div>
>
> So the CSS seems to have been going from the initial <span> all the
> way through to the </span> in the last <li> tag. Knowing this, I
> can control the problem.
I see you have already gotten a good reply from Jukka. Let me add
another option.
Given your current html, you could use css like this
#test span { /* all spans inside #test */
display: none
}
#test ul span { /* all spans inside #test ul: reset the default */
display: inline;
}
Since the second rule has a higher specificity, it will override the
first rule.
--
Roger Roelofs
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/