Two UL aligned to right - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Alignment

Description

Two UL aligned to right

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">

.description {<!--from ww w  .  j  a  va  2s.com-->
   float:left;
   width:200px;
   margin: 30px 10px 20px ;
}
.content-intro-full-right ul li {
   border-bottom: 1px solid #E5E5E5;
}
ul.operating-system  {
   float: right;
   margin: 30px 0px 0px;
}
ul.operating-system li, ul.operating-system li:nth-child(even) {
   border:none;
   padding: 7px;
   width: 80px;
   border-bottom: 1px solid #dedede;
   color:#808080;
   background-color: #f7f7f7;
   padding-left: 30px;
}
ul.operating-system li:last-child {
   border-bottom: none;
}


      </style> 
 </head> 
 <body> 
  <div class="content-intro-full-right"> 
   <ul> 
    <li> 
     <ul class="operating-system"> 
      <li>Fedora</li> 
      <li>SQL</li> 
      <li>Abc</li> 
      <li>Test</li> 
      <li>Unix</li> 
     </ul> 
     <ul class="operating-system" style="margin-right: 40px;"> 
      <li>CentOS</li> 
      <li>Ubuanto</li> 
      <li>Debian</li> 
      <li>Linux</li> 
      <li>Sun</li> 
      <li>Gentoo</li> 
      <li>Slackware</li> 
     </ul> 
     <div class="description"> 
      <h4>Operating Systems</h4> 
      <p> this is a test. this is a test. this is a test. this is a test. 
      this is a test. this is a test. this is a test. this is a test. 
      this is a test. this is a test. this is a test. this is a test. 
      this is a test. </p> 
     </div> 
     <div style="clear:both"></div> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials