Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
css div tags, different link colors
Old 03-23-2008, 12:13 PM css div tags, different link colors
jonathanadams's Avatar
Experienced Talker

Posts: 34
Name: Jonathan Adams
Trades: 0
Hi,
I have a CSS style sheet and my webpage

www.jonathan-adams.co.uk/media/gallery

in the purple box at the top i have links to different pages. I want to change them links to white but leave the rest of the link colors black. I have used the following code:

#navsub {
height: 16px;
width: 553px;
border: 1px solid #000000;
background-color: #AD33FF;
text-align: center;
vertical-align: middle;
padding-top: 2px;
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
color: #FFFFFF
}
#navsub.a:link, a:visited {
color: #FFFFFF;
}

this code successfully changes the link color in the purple box and the link color of the links bellow in the main content tag.

can anyone help me with the css code?
__________________

Please login or register to view this content. Registration is FREE
jonathanadams is offline
Reply With Quote
View Public Profile Visit jonathanadams's homepage!
 
 
Register now for full access!
Old 03-23-2008, 12:18 PM Re: css div tags, different link colors
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I'm confused, the links change to white as you specified, when do you want the rest to be black ???
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 12:25 PM Re: css div tags, different link colors
jonathanadams's Avatar
Experienced Talker

Posts: 34
Name: Jonathan Adams
Trades: 0
Quote:
Originally Posted by LadynRed View Post
I'm confused, the links change to white as you specified, when do you want the rest to be black ???

if you highlight the whole page you will see some other links below the black text below the purple box
__________________

Please login or register to view this content. Registration is FREE
jonathanadams is offline
Reply With Quote
View Public Profile Visit jonathanadams's homepage!
 
Old 03-23-2008, 12:40 PM Re: css div tags, different link colors
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Ahh, ok, didn't see them.. lol

You haven't defined what links inside .pagecontent should be, add this:
.pagecontent a{color: #000;}

Voila - black links
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 12:45 PM Re: css div tags, different link colors
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
You need to make in your CSS the main link elements or specify others for the pagecontent class.

Code:
a {
...
}

a: visited
...
a: hover
...
a: active
...
You have only specified link properties for navsub and it looks like the browswer is using those since you haven't specified any others.
joder is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 12:45 PM Re: css div tags, different link colors
jonathanadams's Avatar
Experienced Talker

Posts: 34
Name: Jonathan Adams
Trades: 0
cheers thank you for your help
__________________

Please login or register to view this content. Registration is FREE
jonathanadams is offline
Reply With Quote
View Public Profile Visit jonathanadams's homepage!
 
Reply     « Reply to css div tags, different link colors
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77382 seconds with 12 queries