CSS - Menu using <ul> - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

CSS - Menu using <ul>

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
body {<!--from w  w  w  .j a  va2s .  c o  m-->
   font:14px/2.3 'segoe ui', sans-serif;
}

a {
   color:Chartreuse;
   text-decoration:none;
}

a:hover {
   text-decoration:underline;
}

ul#menu {
   margin:0;
   padding:0;
   overflow:hidden;
}

ul#menu li {
   float:left;
   margin-left:-2px;
   padding:0 3em;
   border-left:2px solid yellow;
}
</style> 
 </head> 
 <body> 
  <ul id="menu"> 
   <li> <a href="/">Lore</a> </li> 
   <li> <a href="/about/">Lorem</a> </li> 
   <li> <a href="/contact/">Lorem i</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials