HTML CSS examples for CSS Widget:UL Element
Listing with capital Letters and negative margin
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul {<!-- w ww . j a va 2s . c o m--> list-style:none; margin:11px 0px 0px 0px; padding:0px; } ul li a { background-color:Chartreuse; border:2px solid yellow; color:blue; display:block; font-size:17px; padding:13px 13px; line-height:17px; border-bottom:0; } ul li:first-child a { -webkit-border-top-left-radius:9px; -webkit-border-top-right-radius:9px; } ul li:last-child a { -webkit-border-bottom-left-radius:9px; -webkit-border-bottom-right-radius:9px; border-bottom:2px solid pink; } h1, #inside { margin:0; display:inline-block; vertical-align:top; } h1 { font-size:21px; font-weight:bold; margin-right:6px; } </style> </head> <body> <ul> <li> <a href="#"> <h1>L</h1> <div id="inside"> Lorem ipsum </div> </a> </li> <li> <a href="#"> <h1>L</h1> <div id="inside"> Lorem ipsum </div> </a> </li> <li> <a href="#"> <h1>L</h1> <div id="inside"> Lorem ipsum </div> </a> </li> </ul> </body> </html>