Decorate text with big circle - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Decorate text with big circle

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">
.philosophy {<!--from  www .  j  a v a2 s .  c om-->
   background:Chartreuse;
   margin:auto;
   width:100%;
   padding:51px 0;
}

.row-holder {
   display:table;
   margin:21px auto;
}

.philosophy .circle {
   background:yellow;
   border-radius:51%;
   width:151px;
   height:151px;
   display:table;
}

.philosophy span {
   text-align:center;
   vertical-align:middle;
   color:blue;
   font-size:5.6em;
   display:table-cell;
}

.philosophy .content {
   padding:11px 26px;
   display:table-cell;
   vertical-align:middle;
}

.philosophy .table-holder {
   margin-top:41px;
}

.even .content {
   display:block;
}

.even .circle {
   float:right;
}

.even .content {
   display:inline;
}
</style> 
 </head> 
 <body> 
  <div class="philosophy" id="philosophy"> 
   <div class="container"> 
    <h3 class="section-title">Lorem ipsu</h3> 
    <hr class="section-line"> 
    <div class="table-holder"> 
     <div class="row-holder"> 
      <div class="circle"> 
       <span class="icon-time"></span> 
      </div> 
      <div class="content"> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor</p> 
      </div> 
     </div> 
     <div class="row-holder even"> 
      <div class="circle"> 
       <span id="dollar">L</span> 
      </div> 
      <div class="content"> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus</p> 
      </div> 
     </div> 
     <div class="row-holder"> 
      <div class="circle"> 
       <span class="icon-waterdrop"></span> 
      </div> 
      <div class="content"> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tort</p> 
      </div> 
     </div> 
     <div class="row-holder even"> 
      <div class="circle"> 
       <span class="icon-happy"></span> 
      </div> 
      <div class="content"> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas </p> 
      </div> 
     </div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials