Align pieces of text onto the same line - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Align pieces of text onto the 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">
article {<!--from w w  w  . j a v  a 2s  .c  o m-->
   width:34%;
   float:left;
   text-align:center;
}

#Focus {
   width:100%;
}
</style> 
 </head> 
 <body> 
  <article id="Focus"> 
   <h1 id="main">Focus</h1> 
   <br> 
   <article id="Tell"> 
    <h1>Tell</h1> 
   </article> 
   <article id="NStart"> 
    <h1>NStart</h1> 
   </article> 
   <article id="FSB"> 
    <h1>pppp</h1> 
   </article> 
  </article>  
 </body>
</html>

Related Tutorials