homepage Welcome to WebmasterWorld Guest from 54.224.179.98
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Does link color have to be the same
on the entire page?
grnidone




msg:570158
 10:15 pm on Jun 22, 2001 (gmt 0)

All I want to do is have the link color in the navigation bar be different than it is for the rest of the page.

I am probably missing something obvious, but I can't figure it out.

-G

 

evinrude




msg:570159
 10:18 pm on Jun 22, 2001 (gmt 0)

Can certainly do it through CSS by making a seperate class for the type of links. On our internal site we have a couple of different types of links so we alter font size and color to indicate them.

minnapple




msg:570160
 2:57 am on Jun 23, 2001 (gmt 0)

<a href=""><font face="arial" color="123456">link</font></a>

grnidone




msg:570161
 4:00 am on Jun 23, 2001 (gmt 0)

a-HA!

I knew it was something simple. Thanks Minneapple!

-G

mivox




msg:570162
 8:15 am on Jun 23, 2001 (gmt 0)

Beware, specifying the color in the font tag doesn't work reliably on ALL browsers (sometimes the <body> tag or browser default link colors override your font tag specifications).... especially on Mac browsers.

I looked for different HTML and CSS based methods for specifying more than one different link color on one page during my last site re-design... I couldn't find anything that worked reliably enough cross-platform/cross-browser to actually use.

grnidone




msg:570163
 10:54 pm on Jun 23, 2001 (gmt 0)

I actually solved the problem a different way: I changed the color combination so the links could be the same color on the whole page.

-G
(one who has used 'old school' web design until now.)

knighty




msg:570164
 8:29 am on Jun 25, 2001 (gmt 0)

Its very simple to use crossbowser CSS for diff coloured links.

Just create normal a:link styles then create something like a.diff:link
then when you want to use the different link just do

a href="whatever.html class="diff"

Ta-Da!

The above has been tested in NN6, NN4.7. Opera and IE on both PC and Mac.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved