Li element to wrap within its container - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Li element to wrap within its container

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <style>
.content-box {<!-- w  ww .  j  a v a2  s  .c om-->
   position:relative;
   width:801px;
   border:2px solid Chartreuse;
   margin-left:11px;
   padding:11px;
}

ul.horizontal-content {
   list-style:none outside none;
}

ul.horizontal-content>li {
   padding:11px;
   background:grey;
   display:inline-block
}

.filebox {
   position:relative;
   padding:16px;
   width:201px;
   height:201px;
   border:2px solid yellow;
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <div class="content-box"> 
   <h3 class="box-header">Lorem ipsum </h3> 
   <ul class="horizontal-content"> 
    <li> 
     <div class="filebox"> 
     </div> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials