Two hyperlinks in the same li tag - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Two hyperlinks in the same li tag

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.vertical<!--from   w  w w  .  j  a  va 2s .  c o  m-->
 {
   width:100%;
   height:81px;
}

div.vertical ul
 {
   list-style-type:none;
   margin:0;
   padding:0;
}

div.vertical li
 {
   background-color:Chartreuse;
   float:left;
   width:201px;
}

div.vertical li:hover {
   background-color:yellow;
}

div.vertical a
 {
   display:block;
   float:left;
}

div.vertical a:link,div.vertical a:visited
 {
   font-weight:bold;
   color:blue;
   text-align:left;
   padding:9px;
   text-decoration:none;
}

div.vertical a:hover,div.vertical a:active
{
}
span {
   display:table-cell;
   vertical-align:middle;
}
</style> 
 </head> 
 <body> 
  <div class="vertical"> 
   <span> 
    <ul> 
     <li> <a href="#">Lorem i</a> </li> 
     <br> 
     <li> <a href="#">Lorem</a> </li> 
     <br> 
     <li> <a href="#">Lorem </a> </li> 
     <br> 
     <li> <a href="#">Lore</a> </li> 
     <br> 
     <li> <a href="#">Lorem</a> <a href="#">Lorem i</a> </li> 
     <br> 
    </ul> </span> 
  </div>  
 </body>
</html>

Related Tutorials