Formatting web page and layout check boxes into straight line - HTML CSS CSS Form

HTML CSS examples for CSS Form:Form

Description

Formatting web page and layout check boxes into straight line

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
ul, li {
   list-style:none;
}

body {<!--from   w w w.  j  a  v  a2 s  .c o m-->
   text-align:center;
}

li {
   text-align:left;
   margin-left:201px;
}
</style> 
 </head> 
 <body> 
  <div style="background-color:grey;color:black;border:5px solid black;width:600px;height:500px;font-size:18px;"> 
   <h1>Lorem ipsum dolor sit amet, conse</h1> 
   <a href="">Lorem i</a> 
   <div> 
    <a href="">Lorem ips</a> 
    <div> 
     <a href="">Lorem ip</a> 
     <div> 
      <a href="">Lorem</a> 
      <form> 
       <ul> 
        <li> <input type="checkbox" oncheck="">Lorem</li> 
        <li> <input type="checkbox">Lore</li> 
        <li> <input type="checkbox">Lore</li> 
        <li> <input type="checkbox">Lorem</li> 
        <li> <input type="checkbox">Lore</li> 
        <li> <input type="checkbox">Lore</li> 
       </ul> 
       <div> 
        <button type="submit" id="34">Lorem </button> 
       </div> 
      </form> 
     </div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials