[ACCEPTED]-Button width in css3-width

Accepted answer
Score: 12

Try this..

.button {
min-width: 50px;
width: 80px;
padding:5px 10px;



Score: 8

That style is on an a element, which is an 3 inline and won't accept a width. You could 2 change it to be inline-block or block and then you'll have 1 control over the width.

Score: 3

You need to make your <a> into a block 2 level element. Here's an example of it working.

I just added this to your 1 CSS for .button:

display: block;
width: 200px;
text-align: center;

More Related questions