Align H1 Header and Normal Text in Same Line - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Align H1 Header and Normal Text in Same 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">
.left {
   display:inline-block
}

.right {
   display:inline-block;
   float:right
}
</style> <!--from  w w w .j  a  v  a 2s  .c  om-->
 </head> 
 <body> 
  <div style="border-bottom:1px solid #000;"> 
   <div class="left"> 
    <h1>Header</h1> 
   </div> 
   <div class="right">
     Regular Text Goes Here 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials