Place three <ul> elements in horizontally - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Place three <ul> elements in horizontally

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">
#page-content<!-- ww  w  .  ja va2  s.com-->
 {
   float:left;
   width:701px;
   font-size:17px;
}

#page-content h1
 {
   font-size:26px;
   font-weight:100;
   margin-bottom:11px;
}

#page-content ul
 {
   list-style:none;
}

#page-content ul li
 {
   font-size:18px;
   margin-top:8px;
   text-decoration:none;
}

#info
 {
   margin:11px auto;
   background:yellow;
}

#page-content h2
 {
   font-size:23px;
   color:Chartreuse;
   font-family:'bariol_boldbold';
   font-weight:100;
}

#info #col1
 {
   float:left;
   width:201px;
   margin-right:51px;
}

#info #col2
 {
   float:left;
   width:201px;
   margin-right:51px;
}

#info #col3
 {
   float:left;
   width:201px;
}

ul {
   padding:0;
}

#info ul li a
 {
   text-decoration:none;
   color:yellow;
   margin-left:11px;
}

#content
 {
   margin-top:6px;
   background-color:blue;
}

#content p
 {
   font-size:17px;
   line-height:26px;
   text-align:justify;
}

#clear
 {
   clear:both;
}
</style> 
 </head> 
 <body> 
  <div id="page-content"> 
   <h1>Lorem ipsum dolor</h1> 
   <img src="https://www.java2s.com/style/demo/InternetExplorer.png" width="700px" height="360px"> 
   <div id="info"> 
    <h2>Lore</h2> 
    <ul id="col1"> 
     <li>Lorem ip</li> 
     <li>Lorem ip</li> 
    </ul> 
    <ul id="col2"> 
     <li>Lorem i</li> 
     <li>Lorem i</li> 
    </ul> 
    <ul id="col3"> 
     <li>Lorem i</li> 
     <li>Lorem i</li> 
    </ul> 
    <div id="clear"></div> 
   </div> 
   <div id="content"> 
    <h2>Lorem ipsum dolor si</h2> 
    <p>Lorem ipsum dolor si</p> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials