[ACCEPTED]-Button width in css3-width
Accepted answer
Try this..
.button {
display:inline-block;
min-width: 50px;
width: 80px;
padding:5px 10px;
}
0
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.
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;
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.