form legend style : legend : Form Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » Form Style » legend »

 

form legend style


 



<!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">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">

legend {
  background:#ccc;
  border:1px solid #000;
}
html legend{  
  margin-top:-10px;
  position:relative;
}
</style>
</head>
<body>
<form name="form1" id="form1" method="post" action="">
  <fieldset>
  <legend>Testing</legend>
  </fieldset>

</form>
</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Form Style
» legend