alright, I know it's possible to change the formatting for a <form tag, but i'm not sure now to do it.
I also know that it's possible to change the formatting of a form button.
Does anybody have the code for these things?
Thanks in advanceHere's a simple example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
<title>Untitled</title>
<style type="text/css">
<!--
form {
width: 20em;
padding: 1em;
margin: 0 auto;
text-align: center;
background-color: silver;
border: solid gray 2px;
}
.red {
background-color: red;
color: white;
}
.white {
background-color: white;
color: black;
}
.blue {
background-color: blue;
color: white;
}
.red, .white, .blue {
width: 5em;
margin: 0.5em;
padding: 5px;
font-weight: bold;
}
-->
</style>
</head>
<body>
<form action="#" method=post>
<p>
<input type=button value="Red" class=red>
<input type=button value="White" class=white>
<input type=button value="Blue" class=blue>
</p>
<form>
</body>
</html>many thanks, but I also found this class for text inputs
---------
INPUT {
background-color: #000000;
color: #CCCCCC;
}
---------
which, in this case would give us a black background and grey text
I also know that it's possible to change the formatting of a form button.
Does anybody have the code for these things?
Thanks in advanceHere's a simple example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
<title>Untitled</title>
<style type="text/css">
<!--
form {
width: 20em;
padding: 1em;
margin: 0 auto;
text-align: center;
background-color: silver;
border: solid gray 2px;
}
.red {
background-color: red;
color: white;
}
.white {
background-color: white;
color: black;
}
.blue {
background-color: blue;
color: white;
}
.red, .white, .blue {
width: 5em;
margin: 0.5em;
padding: 5px;
font-weight: bold;
}
-->
</style>
</head>
<body>
<form action="#" method=post>
<p>
<input type=button value="Red" class=red>
<input type=button value="White" class=white>
<input type=button value="Blue" class=blue>
</p>
<form>
</body>
</html>many thanks, but I also found this class for text inputs
---------
INPUT {
background-color: #000000;
color: #CCCCCC;
}
---------
which, in this case would give us a black background and grey text