Make horizontal UL aligned to right inside div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Alignment

Description

Make horizontal UL aligned to right inside div

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

ul{<!--   w  w w .  j  a v  a  2  s.  c  om-->
   float:right
}
li{
   list-style:none;
   display:inline-block;
   border:1px solid red;
   width:50px;
   height:50px;
   line-height:50px;
   text-align:center;
   padding:0px!important;
}


      </style> 
 </head> 
 <body> 
  <div style="background:blue;position:relative;overflow:hidden;"> 
   <ul> 
    <li> <a></a> aa </li> 
    <li> <a>h</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials