link color

Reply

Join Date: Oct 2006
Posts: 2
Reputation: Rie~rie is an unknown quantity at this point 
Solved Threads: 0
Rie~rie Rie~rie is offline Offline
Newbie Poster

link color

 
0
  #1
Oct 6th, 2006
hi, I'm new here and new to doing anything that has to do with designing anything for the internet. The teacher I am designing a site for has me using dreamweaver 8. The problem I have is that some of the links are not showing up in dreamweaver and a browser in the color I want them to be in. In some cases the color shows up in dreamweaver but not a browser. Can someone help me in getting the color to show up? (the color does show up when I highlight the link in dreamweaver even if it isnt that color. and sometimes the text color box won't let me pick the color i want)
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 57
Reputation: GliderPilot is an unknown quantity at this point 
Solved Threads: 2
GliderPilot's Avatar
GliderPilot GliderPilot is offline Offline
Junior Poster in Training

Re: link color

 
0
  #2
Oct 6th, 2006
I'm not familiar with dreamweaver... but open the code for the page in dreamweaver and look for the <body> tag. You can than change it for your links. You probably have the link color set, but the visited and active link colors are probably still default giving you undesired colors. Here is what you need to add/change in the <body> tag to set your colors.

link => changes the color of an un-visited link
alink => changes the color of a link that is currently being viewed
vlink => changes the color of a link that has been visited.

you can set them all to the same color if you never want the link color to change. To set the color simply put an = sign than the desired color in brackets. You can use the colors name or it's HEX code preceeded by a # (http://www.theodora.com/gif4/html_colors.gif)

For example:

<body link="#660000" alink="orange" vlink="FFFFFF">
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: link color

 
0
  #3
Oct 8th, 2006
I would use css for that.

a:link { color: blue }
a:visited { color: #0000FF }
a:hover { color: #0000FF }
a:focus { color: #0000FF }
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 15
Reputation: fireworks-style is an unknown quantity at this point 
Solved Threads: 0
fireworks-style fireworks-style is offline Offline
Newbie Poster

Re: link color

 
0
  #4
Oct 9th, 2006
Originally Posted by FC Jamison View Post
I would use css for that.

a:link { color: blue }
a:visited { color: #0000FF }
a:hover { color: #0000FF }
a:focus { color: #0000FF }
Hi,

Yup I would definalty use CSS. If you get the time, check out the brilliant tutorials over at Adobe for CSS. I believe Adrian Senior had a good one that I learnt loads from. Once you get the basics of CSS you can change everything on a website.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2
Reputation: Rie~rie is an unknown quantity at this point 
Solved Threads: 0
Rie~rie Rie~rie is offline Offline
Newbie Poster

Re: link color

 
0
  #5
Oct 10th, 2006
thanks guys.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 1,283
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Solved Threads: 14
roryt's Avatar
roryt roryt is offline Offline
Nearly a Posting Virtuoso

Re: link color

 
0
  #6
Oct 23rd, 2006
Originally Posted by FC Jamison View Post
I would use css for that.

a:link { color: blue }
a:visited { color: #0000FF }
a:hover { color: #0000FF }
a:focus { color: #0000FF }
This is the way to do it. You may want to add more such as underlines this is done like so:

a:link { color: blue; text-decoration: underline;}
a:hover { color: blue; text-decoration: none;}
a:visited {color:black; text-decoration: none;}
a:focus {color:red; text-decoration: underline;}

This piece of CSS will make your hyperlink have no underline when the user hovers over it. It will also make the text color change to black when it has been visited and red when it is clicked on.
PhotoShopthis
FlyingPen
If I have helped you please add to my reputation
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 1,283
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Solved Threads: 14
roryt's Avatar
roryt roryt is offline Offline
Nearly a Posting Virtuoso

Re: link color

 
0
  #7
Oct 23rd, 2006
Originally Posted by fireworks-style View Post
Hi,

Yup I would definalty use CSS. If you get the time, check out the brilliant tutorials over at Adobe for CSS. I believe Adrian Senior had a good one that I learnt loads from. Once you get the basics of CSS you can change everything on a website.
Originally Posted by FC Jamison View Post
I would use css for that.

a:link { color: blue }
a:visited { color: #0000FF }
a:hover { color: #0000FF }
a:focus { color: #0000FF }
Try this:

a:link { color: blue; text-decoration: underline; }
a:visited { color: black; text-decoration: none;}
a:hover { color: pink; text-decoration: none;}
a:focus { color: red; text-decoration: underline; }

Give the above a try and that shoudl teach you a bit more about hyperlink styling.
PhotoShopthis
FlyingPen
If I have helped you please add to my reputation
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC