Page 1 of 1

Input type buttons

Posted: Mon Jul 29, 2002 11:11 am
by bedcor
is there a way to change the properties of an input button? (color, font...)

Posted: Mon Jul 29, 2002 11:16 am
by fatalcure
yes, use stylesheet classes:

styles.css

Code: Select all

.button
{
	font-family: Verdana; 
	font-size: 10px; 
	color: #000000; 
	background: #ffffff; 
	border: #000000;
	border-style: solid;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	width: 30px;
}
then on your button just do:

Code: Select all

<input class='button' type='submit' name='submit' value='GO!'>

Posted: Mon Jul 29, 2002 11:20 am
by bedcor
if i have five buttons would the input code be the same?
except for the name value right?

Posted: Mon Jul 29, 2002 11:23 am
by fatalcure
yes sir :)

Code: Select all

<input class='button' type='submit' name='1' value='GO 1'>
<input class='button' type='submit' name='2' value='GO 2'>
<input class='button' type='submit' name='3' value='GO 3'>