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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.