Jump to content

[SOLVED] link padding wont show up in IE


rh-penguin

Recommended Posts

hi,

 

I've got some code like this:

/* main Menu font settings */
a.cMenu:link,a.cMenu:active,a.cMenu:visited {
color: #ffffff; 
font-size: 10px; 
font-weight: bold;
padding: 7px;
}
a.cMenu:hover { 
background-color: #cc3333;
padding-top: 14px;
}

As you can see its for links (hover and all)

What i am trying to achieve is when hovered over a button it chages background color(which i've done) but the background color has to hover in a specifc size if you get what i mean(this is why in:a.cMenu:hover i put padding)

I took 2 screenshots, one of IE and one of FF (FF render's it correctly, at least the way that i want) http://img219.imageshack.us/img219/4444/iepaddingproblembw8.png

If theres a different way of doing this or im doing this incorectly please tell me.

Link to comment
Share on other sites

I did it pretty much like you did it and tested it in IE7 & FF and it looks fine in both. The padding displays like it should in both browsers.

 

here is how I did it:

 

<style type="text/css">
/* main Menu font settings */
a.cMenu:link,a.cMenu:active,a.cMenu:visited {
color: #ffffff; 
font-size: 10px; 
font-weight: bold;
padding: 7px;
        background: gray;
}
a.cMenu:hover { 
background: #cc3333;
padding: 7px;
}
</style>

<a class="cMenu" href="#">Register</a>

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.