Background-color for ul/div element - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Color

Description

Background-color for ul/div element

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from w w  w. j  av a  2  s  .c  om-->
 <body> 
  <div style="background-color:blue;"> 
   <ul style="list-style-type:none;background-color:blue;display:inline-block"> 
    <li style="float:left;margin-right:10px;">Lorem ips</li> 
    <li style="float:left;margin-right:10px;">Lorem i</li> 
    <li style="float:left;">Lorem i</li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials