HTML CSS examples for CSS Widget:UL Element
CSS List Styling Lining Up
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .toc {<!--from w ww. j a v a 2 s. co m--> list-style:none; font-size:16px; } .toc li { margin:0 0 0 11px; width:221px; overflow:hidden; font-size:14px; font-family:Arial; } .toc li.title { padding-left:17px; text-indent:-17px; } .toc li:not(.title) b { padding:0 5px 0 0; font-weight:bold; } .toc a { width:192px; padding:0 0 0 0px; color:Chartreuse; text-decoration:none; } .toc a:hover { color:yellow; text-decoration:underline; } </style> </head> <body> <div class="block"> <ul class="toc partThree"> <li class="title"> <b class="parts">Lorem ip</b> <a class="partslink" href="#">Lorem ipsum dolor sit am</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolor sit am</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum </a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dol</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolor</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolor si</a> </li> <br> <li class="title"> <b class="parts">Lorem ip</b> <a class="partslink" href="#">Lorem ipsum dolor sit amet, </a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolor si</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolor sit am</a> </li> <br> <li class="title"> <b class="parts">Lorem ip</b> <a class="partslink" href="#">Lorem ipsum dolor sit amet, consectetur </a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolo</a> </li> <li> <b>Lor</b> <a href="#">Lorem ips</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum d</a> </li> <li> <b>Lor</b> <a href="#">Lorem ip</a> </li> <li> <b>Lor</b> <a href="#">Lorem</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolor sit a</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolo</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolor sit a</a> </li> <li> <b>Lor</b> <a href="#">Lorem ipsum dolo</a> </li> </ul> </div> </body> </html>