Posted by Ian Davies on 04/25/06 03:44
Thank you
That worked fine
Ian
"Neredbojias" <http://www.neredbojias.com/fliam.php?cat=alt.html> wrote in
message news:Xns97AF8DF1CFC5Ahttpwwwneredbojiasco@208.49.80.251...
> 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]
|