Jump to content

i am doing my nut here... can not figure out hyperlink css


jasonc

Recommended Posts

/* the next few line are not to be altered, that work fine for the rest of my site. */
a:link { color:#000; text-decoration:none; }
a:visited { color:#000; text-decoration:none; }
a:hover{ color:#666; text-decoration: underline; }
h6 {font-size: 12px; font-weight: bold; }

/* the next line is what i can not get right */
#contactlink{ color:#666; font-size: 12px; font-weight: bold; }

 

<!-- this next line is ok and shows how it should a ligh grey color -->
<h6>Mobile</h6>

<!-- i wish to have the hyperlink the same as above -->
<div id="contactlink"><a href="contact-us.html">Contact us</a></div>

 

what happens is the link has an underline when i hover and it is smaller in size that the top text 'Mobile'

 

i wish to have just these two line shown the same size and color.

 

can anyone suggest how i do this

Try...

 

/* the next few line are not to be altered, that work fine for the rest of my site. */
a:link { color:#000; text-decoration:none; }
a:hover{ color:#666; text-decoration: underline; }
a:visited { color:#000; text-decoration:none; }
h6 {font-size: 12px; font-weight: bold; }

/* the next line is what i can not get right */
#contactlink a { color:#666; font-size: 12px; font-weight: bold; }
#contactlink a:hover { text-decoration:none; }

 

If I could see a live example it would be a lot easier with the help of firebug :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.