HTML CSS examples for CSS Widget:UL Color
Background colour of <div> containing <ul>
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <!-- ww w . java 2s . c om--> <body> <div style="background-color: #302683; overflow:hidden;"> <div style="margin: 0 auto; width: 80%"> <ul style="padding: 0; margin: 0"> <li style="display: inline-block; float: left"> <a href="#design" title="Design" style="text-decoration: none; color: #FFFFFF; display: inline-block; text-align: center; padding: 20px">Lorem </a> </li> <li style="display: inline-block; float: left"> <a href="#proofreading" title="Proofreading" style="text-decoration: none; color: #FFFFFF; display: inline-block; text-align: center; padding: 20px">Lorem ipsum </a> </li> </ul> </div> </div> </body> </html>