CSS - Why am I not able to set height and width of <a href> elements?

Posted by Kenny Bones on Stack Overflow See other posts from Stack Overflow or by Kenny Bones
Published on 2010-04-14T06:16:42Z Indexed on 2010/04/14 6:23 UTC
Read the original article Hit count: 146

Filed under:
|

Hi, I'm trying to create css buttons by using the following html markup:

<a href="access.php" class="css_button_red">Forgot password</a>

But it ends up being not bigger than the text in the middle. Even though I've set the class's height and width.

You can preview the problem here btw, www.matkalenderen.no Notice the first button, that's a form button and it's using it's own class. At first I tried to use the same class on the css button as well and the same problem appeared, so I tried to separate them into their own classes. In case there was some kind of crash. But it didn't matter anyway.

What am I missing here?

© Stack Overflow or respective owner

Related posts about css

Related posts about html