Jump to content

Nav Anchor Tag Issue


kitster79

Recommended Posts

Hi,

 

I am trying to position my anchor tags so that when any part of the blue nac bg is hovered over that individual button it activates the hover state. However I cannot seem to position the text so that it is centered in the blue bar while keeping the hover state only over the blue button...does that make sense?

 

Take a look here...

 

http://vojodesign.com/proofs/jacquelynHernandez/website/index.html

 

As you can see the text is too high up in the blue bar...but when I add top-padding to the anchor tag, it only makes the "hoverable section drop down below the bottom of the blue bar

 

Let me know if I am not explaining myself well enough.

 

Any help fixing this would be much appreciated.

 

Thanks

 

Kit

Link to comment
Share on other sites

I notice that you attempted to solve the problem by editing the #nav li height to 42px instead of height: 30px; padding-top: 12px which made the whole height clickable but the text moved to the top; so put padding-top on the "a" tag which controls the text:-

#nav  li a {
   color: #FFFFFF;
   text-decoration: none;
   font-weight: normal;
   font-size: 14px;
   font-family: Helvetica, Arial, sans-serif;
   padding-top: 12px; /*was0px;*/
   padding-bottom: 0px;
   display: block;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...