HTML CSS examples for CSS Widget:Menu
Extra space next to menu
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .center {<!--from w ww .j a v a2 s. c om--> margin:0 auto; width:100%; height:100%; background-color:Chartreuse; padding:0; } #top_forums_menu { width:100%; height:25px; background-color:yellow; position:relative; } ul#top_forums_menu_bars { list-style-type:none; margin:0 auto; padding-left:0; } ul#top_forums_menu_bars li { float:left; width:26%; height:100%; overflow:hidden; -webkit-box-shadow:0 7px 3px -5px black; -moz-box-shadow:0 7px 3px -5px black; box-shadow:0 7px 3px -5px black; transition:all .26s ease-in-out; -moz-transition:all .26s ease-in-out; -webkit-transition:all .26s ease-in-out; } ul#top_forums_menu_bars li:hover { border-bottom:6px solid blue; } ul#top_forums_menu_bars li a { display:inline-block; width:100%; height:100%; opacity:2; text-decoration:none; transition:opacity .6s ease-in-out; -moz-transition:opacity .6s ease-in-out; -webkit-transition:opacity .6s ease-in-out; line-height:11px; padding-top:8px; text-align:center; font-family:Tahoma, Verdana, Segoe, sans-serif; font-size:13px; color:pink; } ul#top_forums_menu_bars li a:hover { opacity:.9; } </style> </head> <body> <div id="top_forums_menu"> <div class="center"> <ul id="top_forums_menu_bars"> <li> <a href="" style="background-color:#5dbcff;">Lorem i</a> </li> <li> <a href="" style="background-color:#5dbcff;">Lorem ipsum dolo</a> </li> <li> <a href="" style="background-color:#5dbcff;">Lorem ipsu</a> </li> <li> <a href="" style="background-color:#5dbcff;">Lorem </a> </li> </ul> </div> </div> </body> </html>