Button background-color: #FFFFFF; : button « Form « HTML / CSS






Button background-color: #FFFFFF;

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
  xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style rel="stylesheet" type="text/css">
#sidebar {
  width: 214px;
  float: left;
  background-color: #FFFFFF;
}

#block {
  width: 214px;
  float: left;
  background-image: url(images/bottom.gif);
  background-position: bottom left;
  background-repeat: no-repeat;
  background-color: #174F63;
  padding: 10px 0 7px 0;
}


#login img {
  float: left;
}

.input {
  width: 145px;
  height: 15px;
  border: 2px inset #D5D5D5;
  float: left;
  margin: 0 0 6px 0;
  padding: 0 0 0 2px;
  font-family: Tahoma;
  font-size: 11px;
  color: #828282
}

.button {
  background-image: url(images/button.gif);
  background-position: top left;
  background-repeat: no-repeat;
  background-color: #FFFFFF;
  width: 128px;
  border: 0px;
  margin: 7px 0 5px 7px;
  padding: 3px 0 6px 0;
  cursor: hand;
  cursor: pointer;
  color: #2C2C2C;
  font-family: Tahoma;
  font-size: 11px;
}

.checkbox {
  float: left;
  margin: 0 0 0 17px;
  width: 13px;
  height: 13px;
}



</style>
</head>
<body>
    <div id="sidebar">
      <div id="block">
      <div id="login">                                                
          <form action="#">
            <img src="images/text1.gif" alt="" width="56" height="11" />
            <input type="text" class="input" />
            <img src="images/text2.gif" alt="" width="56" height="11" />
            <input type="text" class="input" /><br />
            <input type="button" class="button" value="Enter" /><br />
            <input type="checkbox" class="checkbox" /><img src="images/text3.gif" alt="" width="70" height="13" /><br />
          </form>
          <a href="#" class="forgot">forgot password?</a>      
      </div>
    </div>
</body>

</html>

   
    
  








Related examples in the same category

1.'button' Example
2.Form button with label
3.Buttons using the button element
4.input types "submit" and "reset" insert buttons for submitting and clearing the form's contents
5.Define class for input button control
6.Set submit button style for input
7.Style for reset button
8.Style for button submit
9.Hide submit button
10.Set style for submit button: border, background color, padding, margin and width
11.Set style for submit hover: text decoration
12.Set margin and width for submit button
13.Set text-transform: uppercase for button
14.Change form button style
15.button font: bold 12px Arial, Sans-serif;
16.button height: 24px;
17.button color: #333;
18.button background: #e7e6e6 url(MarketPlace-images/button.jpg) repeat-x;
19.button border: 1px solid #dadada;
20.button margin: 0;
21.button font: bold 1em Arial, Sans-serif;
22.button border: 1px solid #EFEFEF;
23.button padding: 2px 3px;
24.button background: #F1F0E4;
25.Button border-bottom: 1px solid #d8d8d8;
26.Button border-left: 4px solid #ccc;
27.Button border-right: 1px solid #d8d8d8;
28.Button border-top: 1px solid #d8d8d8;
29.Button color: #505050;
30.Button font-weight: 700;
31.Button margin: 0 0 15px;
32.Button padding: 7px 7px 7px 11px;
33.Button width: 120px;
34.Button background-image: url(images/button.gif);
35.Button background-position: top left;
36.Button background-repeat: no-repeat;
37.Button width: 128px;
38.Button border: 0px;
39.Button margin: 7px 0 5px 7px;
40.Button padding: 3px 0 6px 0;
41.Button cursor: hand;
42.Button cursor: pointer;
43.Button color: #2C2C2C;
44.Button font-family: Tahoma;
45.Button font-size: 11px;
46.Button width: 103px;
47.Button padding: 0px;
48.Button background: none;
49.Button float: left;
50.Button margin: 10px 0 0 70px;
51.Button display: inline
52.button { line-height: 2; vertical-align: top; }