HTML CSS examples for CSS Widget:Menu
Create list of menu with border using UL
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!-- w ww.j ava2 s .c o m--> box-sizing:border-box; } #bar { margin:auto; width:51%; height:31px; padding:0; background:lightgrey; text-align:center; } .foo { line-height:31px; float:left; width:26%; list-style:none; border-top:2px solid Chartreuse; border-left:2px solid yellow; border-bottom:2px solid blue; } .foo:last-child { border-right:2px solid pink; } </style> </head> <body> <ul id="bar"> <li class="foo">Lorem</li> <li class="foo">Lorem</li> <li class="foo">Lorem</li> <li class="foo">Lorem</li> </ul> </body> </html>