Horizontal UL - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Horizontal UL

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, ul li {
   padding:0;
   margin:0;
   display:inline;
   list-style:none;
}

ul a {
   float:left;
   background:red;
   height:100px;
   width:100px;
   margin:6px;
   font:4em georgia, serif;
   text-decoration:none;<!--  ww  w .  j  ava2s  . co m-->
   text-align:center;
   line-height:91px;
   color:Chartreuse;
}

ul a:hover {
   background:darkred;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li> <a href="">L</a> </li> 
   <li> <a href="">L</a> </li> 
   <li> <a href="">L</a> </li> 
   <li> <a href="">L</a> </li> 
   <li> <a href="">L</a> </li> 
   <li> <a href="">L</a> </li> 
   <li> <a href="">L</a> </li> 
   <li> <a href="">L</a> </li> 
   <li> <a href="">L</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials