Posted by Neredbojias on 04/24/06 23:57
To further the education of mankind, "Ian Davies"
<iandan.dav@virgin.net> vouchsafed:
> Hello
>
> I want to display more than one style of link on a webpage using CSS
> but an finding it impossible to do. I wish the menu bar at the top to
> have different style of link to those links in the main body.
>
> I thought this would be easy as I have a header page in a separate
> html to the body (to make it easy to display the header on each page).
> However the link style in the body over rides the link style in the
> header. I was hoping they would remain local to their respective
> pages.
Assign a class to the links you want different and style the class as
another link:
<a class="altlink" href="example.com">Example</a>
a:link,a:visited {
background:white;
color:black;
}
..altlink:link,.altlink:visited {
background:blue;
color:red;
}
--
Neredbojias
Infinity has its limits.
Navigation:
[Reply to this message]
|