Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 16th, 2002, 05:21 PM
roberto_nl roberto_nl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: The Netherlands
Posts: 19 roberto_nl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CSS Link color

ok, heres the problem:
ive got top navigation, its included <php include >
and i want those links to be #FFFFFF and onther links on the site to be #000000

i'm trying all things with
A:link {
}
and stuff, but it aint working.
all links all the same color (white or black)

the i've tried to add a new style
.nav { fot description and stuff}

.nav:link {....}
but it still doesnt work.

please help

greetz
robert

Reply With Quote
  #2  
Old October 16th, 2002, 06:02 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Robert,

Try this:

For your main site color:

PHP Code:
 a color #000000; }

a:hover {  whatever you choose; }

For 
your Nav-bar

a.nav color#FFFFFF; } 


HTH...
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #3  
Old October 16th, 2002, 07:58 PM
roberto_nl roberto_nl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: The Netherlands
Posts: 19 roberto_nl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok, it aint working...
it included by
<link href="style.css" rel="stylesheet" type="text/css">

but it just wont work right...
the navigation has as style .NAV and the rest of the site .STYLE
can some tell me what is wrong with this code ?


PHP Code:
.nav {
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size10px;
    
color#000000;
    
background-repeatno-repeat;
    
background-positionleft top;
    
text-decorationnone;
}
 

a.nav:link {
    
COLOR#FFFFFF; 
}
a.nav:visited {
    
COLOR#FFFFFF; BACKGROUND-COLOR: #AAB3C4; TEXT-DECORATION: none
}
a.nav:hover {
   
COLOR#FFFFFF; BACKGROUND-COLOR: #AAB3C4; TEXT-DECORATION: underline
}



.
something {
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size10px;
    
color#000000;
    
background-repeatno-repeat;
    
background-positionleft top;
    
text-decorationnone;



GreetZ
robert

Reply With Quote
  #4  
Old October 16th, 2002, 08:42 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
how are you calling your nav links?

it should be like this

<a href="test.html" class="nav">Link</a>

Reply With Quote
  #5  
Old October 16th, 2002, 08:49 PM
roberto_nl roberto_nl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: The Netherlands
Posts: 19 roberto_nl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yes, i was adding class="nav" just to the table, not to each link...
thx, its working now !!!
yeah

greetzzzz
robert

Reply With Quote
  #6  
Old December 1st, 2004, 04:42 AM
abfpar abfpar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 abfpar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
dear sirs

i think i got a problem like this

i have smartor ezportal installed and in the block of welcome
controlled by the line

<td class="th" height="25"><span class="oi"> Welcome {U_NAME_LINK} !!</span></td>

i change the color of styles "th" and "oi" and the word "welcome" change its color but the username color, called by {U_NAME_LINK} still remain the same

if i go in the template.css and change the color of link class, this {U_NAME_LINK} change its color but all other links in the page change its color too..

i just want to change the color of {U_NAME_LINK} .. how can i do it??

what command i must imput?? i need to create another class??

the posted awsers seems to offer the solution but iam a begginer and did not get it all

thanks by the patience.

Reply With Quote
  #7  
Old December 2nd, 2004, 10:50 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Deja vu! A two year old thread!

You might have better results in a new thread as your question is somewhat out of scope of the previous discussions. I don't think this is directly a CSS question...

However... if {U_NAME_LINK} is replaced by anchor tags, you could set your CSS to read:
.oi a {color:#0c0;}

if your anchor tags are rendered with a class, you might be best to use the actual name and not a

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > CSS Link color


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT