Page 1 of 1

button format with stylesheet

Posted: Fri Mar 18, 2005 1:28 am
by pleigh
i have a button formatted with stylesheet...my problem is its appearance...my button looks like this

-----------------------------
|<--->button name<--->|
-----------------------------

the arrows indicates the space from the edge of the button to its value....i want to lessen the space so it will look nice....here's my css code below

Code: Select all

.buttonformat {
background-color: #c0c0c0;
font-family: verdana;
border: #000000 2px solid;
font-size: 12px;
color: #000000;
}
your help will be much appreciated...

Posted: Fri Mar 18, 2005 1:50 am
by n00b Saibot
Hint: padding-left and padding-right :wink:

Posted: Fri Mar 18, 2005 2:13 am
by pleigh
thanks noob...but it doesn't work...i'm not sure what or where the problem is...

Posted: Fri Mar 18, 2005 3:33 am
by n00b Saibot
then i am sorry but your only hope seems to be the width attribute. :(
Calculate the text width and set the width accordingly.