HTML CSS examples for CSS Widget:Menu
Navigation menu with captions
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #menu {<!-- ww w. ja v a2 s . c om--> position:relative; } dt, dd { width:121px; padding:0 11px; border-left:3px solid Chartreuse; float:left; } dt { margin-left:-121px; font-weight:bold; } dt:first-child { margin:0; } dd { position:relative; top:21px; font-family:verdana; font-size:10px; left:-143px; } </style> </head> <body> <dl id="menu"> <dt> Lorem i </dt> <dd> Lorem ipsum dolor sit amet, consectetur </dd> <dt> Lorem ip </dt> <dd> Lorem ipsum dolor sit amet, consectetur </dd> <dt> Lorem i </dt> <dd> Lorem ipsum dolor sit amet, consectetur adip </dd> <dt> Lorem ips </dt> <dd> Lorem ipsum dolor sit amet, consectetur adipis </dd> </dl> </body> </html>