Welcome to WebmasterWorld Guest from 18.207.238.169
Forum Moderators: not2easy
I have a site I have designed using layers...and CSS..as far as I understand it which isn't as far as I thought. Basically I have defined the links/hovers/visted/etc in a style sheet...but if you go into 'modify page properties' (using dreamweaver mx 2004 btw) these properties are applied here ( ie link colour/ active link colour/ etc etc)
I need to have links at the bottom of the page in a different colour. No problem thinks I: Macromedia tell me all i need to do is apply a 'custom' class with a different link colour. Er..no. Does not work. Not a jot of difference. I have to have this site live by monday, and I'm at my wits end...can anyone help? Please?
cheers
Jim
You do something like this in the css:
a.darkbackstyle:link {color:White; font-family:Arial, Helvetica, sans-serif; font-size:13px;}
a.darkbackstyle:visited {color:White; font-family:Arial, Helvetica, sans-serif; font-size:13px;}
a.darkbackstyle:hover {color:#ffcc66; text-decoration:none;font-family:Arial,Helvetica,sans-serif; font-size:13px;}
a.darkbackstyle:active {color:White; font-family:Arial, Helvetica, sans-serif;font-size: 13px;}
Then do this in the tag:
<a href="http://www.example.com" class="darkbackstyle">Test</a>
<div id="masthead"><!-- top of page general stuff, if you put your nav menu before the content, include it here --></div>
<div id="content"><!-- what the page is all about --></div>
<div id="footer"><!-- copyright, last updated, etc. --></div>
Other sections are usually best inserted before or after #content. So, taking your question and supposing the links you need changed are in #footer. Just mark them up as normal and use CSS like ..
a:link {} /* default */
#footer a:link {} /* overrides default for all contained by #footer */
Thanks for your suggestion and I will try to apply it.
cheers
Jim