Horizontal list in a bar - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Horizontal list in a bar

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">
div {<!--  w w w  .j  a  v a 2 s . c  o  m-->
   margin-top:91px;
   margin-left:91px;
   background-color:Chartreuse;
}

ul {
   list-style-type:none;
}

ul li {
   display:inline-block;
}

a {
   background-color:yellow;
   padding:11px 11px 11px 11px;
   display:inline-block;
}
</style> 
 </head> 
 <body> 
  <div> 
   <ul> 
    <li> <a>Lorem ip</a> </li> 
    <li> <a>Lorem i</a> </li> 
    <li> <a>Lorem </a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials