Jump to content

Link Height in FF


PrateekSaxena

Recommended Posts

Hello,I am writing the following CSS code -

a.menu{	width: 60px;	font-family: Tahoma;	font-size: 14px;	background-color: red;	height: 60px;}

But in Firefox the link is not stretching to the height and width I have told it to. Instead the background color only remains till the text of the link. Could someone please tell me how I can fix this. This is the HTML code

<a class="menu" href="#">Me</a>

I am using Firefox Ver 2.0.0.1.

Link to comment
Share on other sites

try line-height:60px; i think that'll do it.In fact that is a bad suggestion. Just had a look at some of my links and they seem to be ok with just height and width as you have put them. maybe put the links into a <ul> call it #nav or something and use #nav a {} in the css. As seen here

Link to comment
Share on other sites

it's not a problem with firefox. you should take a look at this.
So i was right wow thats a first. Alternatively you could make a div called link, give it all the properties and just put the link inside that.
Link to comment
Share on other sites

Thanks guys..that was really helpful :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...