Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Keeping clicked links black

Reply
Thread Tools

Keeping clicked links black

 
 
bnrcktts@aol.com
Guest
Posts: n/a
 
      11-15-2006
Hello

I am very new to html and am currently messing about with a geocities
page which is at www.geocities.com/simian_technology/coral

For the links that I intend to put along the top HOMES / INTERVIEWS /
REVIEWS / LINKS
I don't want the colour of the link to be blue, I want the colour to
stay black and underlined whether its been clicked or previously
visited. Could somebody reply with some code on how to do this. I know
I am using geocities which is drag and drop, but I am able to insert
html code fairly easily.

Thanks

Ben

 
Reply With Quote
 
 
 
 
K A Nuttall
Guest
Posts: n/a
 
      11-15-2006
wrote:

> I am very new to html and am currently messing about with a
> geocities page which is at
> www.geocities.com/simian_technology/coral
>
> For the links that I intend to put along the top HOMES /
> INTERVIEWS / REVIEWS / LINKS
> I don't want the colour of the link to be blue, I want the colour
> to stay black and underlined whether its been clicked or
> previously visited. Could somebody reply with some code on how to
> do this. I know I am using geocities which is drag and drop, but I
> am able to insert html code fairly easily.


You need to define a style for the anchor tag, like this:

a {
color: black;
text-decoration: underline;
}

This would live in an external stylesheet, or within style tags in the
head of the page.

If this only applies to a certain section of the page, you can apply
the style in context, for example inside a div with id="content", like
this:

div#content a {

Also, there's no indication that the link is really a link, other than
the cursor's reaction. So creating a hover effect is helpful:

a:hover {
text-decoration: none;
}

....would momentarily remove the underline when hovering over the link
(not necessarily the best effect, it's up to you what you do).

--
K A Nuttall
www.yammer.co.uk
Re-type the e-mail address how it sounds, remove .invalid
 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      11-15-2006

http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hello
>
> I am very new to html and am currently messing about with a geocities
> page which is at www.geocities.com/simian_technology/coral


This is a CSS problem more than a HTML problem and is regularly
discussed. Try searching for " :hover " (that colon is important).

However to do this you need to use a CSS stylesheet, not just attach
the settings to the style attribute on the HTML. You may have trouble
doing this on a Geocities site.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop is black with black letters Antonio Computer Support 10 06-23-2006 01:44 AM
Mozilla Thunderbird Email NOT capturing clicked email links... AJPDLA Firefox 4 04-12-2006 07:05 PM
CANON BCI-3e Black Ink Cartridge ( 3e Black ) Mick Computer Support 2 07-24-2005 10:26 PM
Epson 1290S - Black isn't black Chris Gilbert Digital Photography 9 08-21-2004 06:27 AM
Disable a field keeping text black? harry HTML 1 04-08-2004 09:01 AM



Advertisments