Navigation menu created by unordered list of pure CSS

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.