Left/right align text via table in markdown - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Text

Description

Left/right align text via table in markdown

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">
.panel-inside {<!--from ww  w. jav  a 2s  .com-->
   padding-left:0px;
   padding-right:0px;
   overflow:auto;
}

.row
 {
   height:31px;
   width:100%;
   vertical-align:middle;
}

.label
 {
   font-size:13pt;
   display:inline;
   float:left;
   margin-left:6px;
   width:201px;
}

.label-right
 {
   font-size:13pt;
   color:Chartreuse;
   display:inline;
   float:right;
   margin-right:8px;
   width:201px;
}

.listSeparator
 {
   clear:both;
   height:0;
}
</style> 
 </head> 
 <body> 
  <div class="panel-inside"> 
   <div class="row"> 
    <div class="label">
      Lorem ipsum do 
    </div> 
    <div class="label-right">
      Lorem ipsum 
    </div> 
   </div> 
   <div class="listSeparator">
     &nbsp; 
   </div> 
   <div class="row"> 
    <div class="label">
      Lorem ipsu 
    </div> 
    <div class="label-right">
      Lorem ipsu 
    </div> 
   </div> 
   <div class="listSeparator">
     &nbsp; 
   </div> 
   <div class="row"> 
    <div class="label">
      Lorem ipsum dol 
    </div> 
    <div class="label-right">
      Lorem ipsum 
    </div> 
   </div> 
  </div> 
  <div id="content"> 
   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat v</p> 
  </div>  
 </body>
</html>

Related Tutorials