Input type buttons

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bedcor
Forum Newbie
Posts: 24
Joined: Fri Jul 26, 2002 11:01 am
Location: Barrie, Ontario

Input type buttons

Post by bedcor »

is there a way to change the properties of an input button? (color, font...)
fatalcure
Forum Contributor
Posts: 141
Joined: Thu Jul 04, 2002 12:57 pm
Contact:

Post 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!'>
bedcor
Forum Newbie
Posts: 24
Joined: Fri Jul 26, 2002 11:01 am
Location: Barrie, Ontario

Post by bedcor »

if i have five buttons would the input code be the same?
except for the name value right?
fatalcure
Forum Contributor
Posts: 141
Joined: Thu Jul 04, 2002 12:57 pm
Contact:

Post 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'>
Post Reply