HTML CSS examples for CSS Widget:UL Element
Adding border to UL LI item
<html lang="en"> <head> <style> ul li { display:inline-block; position:relative; top:-15px; width:800px; border:1px solid gray; } #home {<!-- ww w . ja va 2 s.c o m--> position:relative; display:inline-block; } </style> </head> <body translate="no"> <nav> <ul> <li> <a class="vari" href="#" id="home"> <span>Home</span> </a> </li> <li> <a class="vari" href="">Music videos</a> </li> </ul> </nav> </body> </html>