The menu bar of the pure CSS website of the three lines of tutorials (www.bkjia.com) is changed to a new style. The Li list is mainly used for others, and the overall layout is concise and elegant, it is suitable for most websites. You can adjust the color and menu gaps as needed.
<! 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 "/> <title> multi-row navigation bar </title> <style type =" text/css "> * {margin: 0; padding: 0 ;} body {font: 12px/180% Verdana, Geneva, sans-serif;} li {list-style: none;} a {text-decoration: none; color: #999 ;} a: hover {color: #900; text-decoration: underline ;}. nav_sub {width: 700px; margin: 0 auto; height: 1%; overflow: hidden; margin-bottom: 10px; background: # EDEEEF ;}. title_nav_sub {display: block; padding: 3px 20px; text-align: center; background: # 48862F; color: # fff; float: left ;}. nav_sub ul {float: left ;}. nav_sub ul li {display: inline ;}. nav_sub ul a {float: left; padding: 3px 20px ;}. more {float: right ;} </style>
Tip: the code can be modified before running!