Forum Moderators: not2easy
it may seem easy to those that know, but not so long ago it was a FAQ - that was explained patiently - so why not now?
does anyone remember the right to left rule of inheritance?
[edited by: SuzyUK at 10:31 pm (utc) on Sep. 15, 2006]
These are called contextual selectors. They basically allow you to specify how a certain class will behave for different tags. For example, you could have, in your CSS: p.highlight{font-weight:bold;} and h1.highlight{text-decoration:underline;}
Any <p class="highlight"> will be bold and any <h1 class="highlight"> will be underline.
In your example, .heading p will be just the opposite. Any <p> tag within another tag that has a class="heading" will be affected. For example:
<div class="heading">
<h1>This will not be affected.</h1>
<p>This will be affected by whatever you define as .heading p.</p>
</div>
EDIT: and I agree, there is no such thing as a stupid question. :)