HTML CSS examples for CSS Widget:UL Color
Background-color for ul/div element
<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>