Use DIV to wrap form control : form : Form Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » Form Style » form »

 

Use DIV to wrap form control


 

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>

<style type="text/css">

div {
  margin: 2em;
}

</style>

</head>
<body class="required">
<form method="get" action="/">
    
    <div>
    <label for="q">Search</label>
    <input type="search" placeholder="keywords" autosave="com.domain.search" results="7" name="q" /> 
    </div>
</form>

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Form Style
» form