CSS Menu with images Dark
A simple, cross browser compatible horizontal CSS menu with images, no javascript.
Very small, only 2,84 KB
Demo:
HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="menu.css" /> <title>CSS Horizontal Menu with images</title> </head> <body> <div class="img_menu_dark"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3</a></li> <li><a href="#">Link 4</a></li> <li><a href="#">Link 5</a></li> </ul> <br /> </div> </body> </html>CSS code:
/* CSSTerm.com CSS Horizontal menu with images */ br { clear:left } .img_menu_dark { width: 100%; background:#005555 url('img_bg.gif') repeat-x } .img_menu_dark ul { margin: 0; padding: 0; float: left; } .img_menu_dark ul li { display: inline; } .img_menu_dark ul li a { float: left; text-decoration: none; color: #DADADA; padding: 10.5px 11px; } .img_menu_dark ul li a:visited { color: #DADADA; } .img_menu_dark ul li a:hover, .menu_simple ul li .current { color: white; background:#005555 url('btn_bg.gif') repeat-x }
Previous page: Easy Drop Down Menu
Next page: CSS Menu with images Bright