You are here: Re: Link style over riding another « HTML « IT news, forums, messages
Re: Link style over riding another

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация