Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 29, 2004, 3:51 am
rate this thread
Well... i guess it's cascading right, but not like I want it to.
Say I have a div to mark the main section of the page with an id of main.
then in my stylesheet i have
I also have links in the main-copy where i want it to override the other
<a class="location" href="tallahassee.html">Tallahassee</a>
This rule doesn't change the color:
So, I could do
#main-copy .location a
but then I would have to do this for every section of the page (with
many rules for the :hover, :link etc).
#side-bar .location a
#header .location a
Is there any way around this, where i could only state this once in the
Re: CSS not cascading right
You are talking about inheritance, not cascading.
and what comes after this?
Do you have other rules like a.location:link etc
Ah, the plot thickens.
I can not see the problem. You will have to provide a URL to the page that
exhibits this behavoiur. It is pointless looking at one little bit of the