link padding wont show up in IE

This is a discussion on "link padding wont show up in IE" within the Web Page Design section. This forum, and the thread "link padding wont show up in IE are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 3rd, 2007, 18:12
New Member
Join Date: Dec 2007
Location: london
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
link padding wont show up in IE

hi,

I've got some code like this:
Code: Select all
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/4...problembw8.png
If theres a different way of doing this or im doing this incorectly please tell me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 3rd, 2007, 18:15
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: link padding wont show up in IE

add display: block; some width and height to a.cMenu:link, :active, :visited and :hover
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 3rd, 2007, 18:29
New Member
Join Date: Dec 2007
Location: london
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: link padding wont show up in IE

Quote:
Originally Posted by karinne View Post
add display: block; some width and height to a.cMenu:link, :active, :visited and :hover
I've done as you said but now instead of the menu displaying horizontaly its displayed vertically. I tried adding float: right but that didnt make much difference. How would i display the menu horizontaly?

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 3rd, 2007, 18:40
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: link padding wont show up in IE

Follow this tutorial

CSS Hover Effects
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 3rd, 2007, 19:20
New Member
Join Date: Dec 2007
Location: london
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: link padding wont show up in IE

It shows me the whole menu but doesnt really say what each function means/how it works.
Can you please tell me how you would make this work:
Code: Select all
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;
}


Last edited by Marc; Dec 4th, 2007 at 10:38. Reason: Please use [code] tags when displaying code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Div wont line up with Nav bar? Oak Web Page Design 1 Mar 1st, 2008 12:26
Why Directory sites doesnt show as back link? anil99rst Search Engine Optimization (SEO) 6 Sep 28th, 2007 19:02
sometimes a link wont work.. why? col Web Page Design 1 Aug 20th, 2007 22:38
Why wont it Validate R8515198 Web Page Design 12 Jul 4th, 2007 17:01
why wont my image show up? :( monkeymafia Web Page Design 4 Jun 20th, 2007 17:12


All times are GMT. The time now is 18:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42