HTML CSS examples for CSS Widget:UL Element
center a list
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .center {<!-- www . java2 s . com--> width:201px; margin:0 auto; text-align:left; } ul { list-style-type:square; } </style> </head> <body> <div class="center"> <ul> <li>Lorem ipsum dolor sit amet, </li> <li>Lorem ipsu</li> <li>Lorem ipsum d</li> <li>Lorem ipsum do</li> </ul> </div> </body> </html>