Two div element next to each other in page header - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

Two div element next to each other in page header

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--  www  .j a  v  a  2 s  .c  om-->
 <body> 
  <style type="text/css">

#header{border:3px solid gray;padding:10px;}
#header-left-container{border:1px solid gray;float:left;width:30%;}
#header-right-container{border:1px solid gray;margin-left:30%;width:69%;}


      </style> 
  <div id="header"> 
   <div id="header-left-container">
     pooo 
   </div> 
   <div id="header-right-container">
     bla bla bla..... 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials