label background-color : label : Form Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » Form Style » label »

 

label background-color


 

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <style type="text/css">

label:after {
  content: ": ";
}

label {
  background-color: pink;
  color: black;
  font-weight: bold;
  padding: 4px;
  text-transform: uppercase;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: xx-small;
}




  </style>
</head>

<body>


<form action="" method="post">

  <label for="uname">Username</label>
  <input type="text" name="uname" id="uname" value="" /><br />

  <label for="pname">Password</label>
  <input type="text" name="uname" id="uname" value="" /><br />

  <input type="submit" name="Submit" value="Submit" class="buttonSubmit" />


</form>

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Form Style
» label