Separating <th> elements in a table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table

Description

Separating <th> elements in a table

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">
body {<!--from   ww w  . j  ava 2s.co  m-->
   background-color:Chartreuse;
}

h1 {
   color:yellow;
   border-bottom:solid blue;
   position:relative;
   top:31px;
}

select {
   width:174px;
}

tr,td{
   height=300px;
   width=200px;
   position: absolute;
   top: 20px;
   left: 30px;
   colspan="0"}
   table {
   height:501px;
   width:801px;
   border:4px solid pink;
   position:absolute;
   top:131px;
   left:331px;
   z-index:-2;
}

#wid {
   width:201px;
   height:601px;
   border-right:solid OrangeRed;
   position:relative;
   top:51px;
   left:51px;
}

#wid div {
   position:relative;
   top:501px;
   left:100px;
}

th ,td {
   border:4px solid grey;
}
</style> 
 </head> 
 <body> 
  <h1>Lorem i</h1> 
  <div id="wid"> 
   <input type="text" name="manuf" value="?????????????"> 
   <br> 
   <select> <option value="none">Lorem ipsum d</option> <option value="nokia">Lorem</option> <option value="mercedes">Lorem i</option> <option value="sony">Lore</option> </select> 
   <br>Lorem ipsum dolor si 
   <br>Lorem i 
   <input type="number" name="from" value="0">Lorem 
   <input type="number" name="to_the" value="99999"> 
   <input type="submit" value="Submit"> 
  </div> 
  <table> 
   <tbody> 
    <tr> 
     <th> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> <br> <h5>Lorem ipsum dolo</h5> </th> 
     <th> <img src="https://www.java2s.com/style/demo/Safari.png"> <br> <h5>Lorem ipsum dolo</h5> </th> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials