Pure CSS to achieve the blue fillet effect horizontal navigation menu code

Source: Internet
Author: User

This article describes the pure CSS implementation of the blue fillet effect horizontal navigation menu code. Share to everyone for your reference. Specifically as follows:

This is a lovely blue rounded horizontal navigation menu, with a few background pictures, I think this menu is very practical, especially in the personal blog is very appropriate. The compatibility is also very good, almost compatible with all browsers.

The screenshot of the running effect is as follows:

The

code is as follows: <! 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> Blue Fillet horizontal navigation menu </title>


<style>


*{


margin:0;


padding:0;


}


body{


background: #fff;


color: #666;


font:12px/18px Tahoma, Arial, Helvetica, Sans-serif;


}


#menu {


width:100%;


margin:15px;


}


#menu ul{


List-style:none;


}


#menu li{


List-style:none;


Display:block;


Float:left;


margin:0 2px;


}


#menu Li a{


Display:block;


Float:left;


height:66px;


color: #fff;


text-transform:uppercase;


font-size:11px;


Font-weight:bold;


Background:url (images/menu_009_l.jpg) no-repeat left;


line-height:66px;


padding:0 0 0 9px;


Text-decoration:none;


}


#menu Li a span{


Display:block;


Float:left;


Background:url (images/menu_009_r.jpg) No-repeat right;


height:66px;


color: #d2eeff;


line-height:66px;


padding:0 18px 0 8px;


}


#menu Li a:hover{


Display:block;


Float:left;


Background:url (images/menu_009_h_l.jpg) no-repeat left;


height:66px;


}


#menu li A:hover span{


Display:block;


Float:left;


Background:url (images/menu_009_h_r.jpg) No-repeat right;


color: #fff;


height:66px;


}


#menu Li a.current{


Display:block;


Float:left;


height:66px;


color: #fff;


text-transform:uppercase;


font-size:11px;


Font-weight:bold;


Background:url (images/menu_009_h_l.jpg) no-repeat left;


line-height:66px;


padding:0 0 0 9px;


Text-decoration:none;


}


#menu Li A.current span{


Display:block;


Float:left;


Background:url (images/menu_009_h_r.jpg) No-repeat right;


height:66px;


color: #fff;


line-height:66px;


padding:0 18px 0 8px;


}


</style>


</head>


<body>


<div id= "menu" >


<ul>


<li><a href= "#" class= "current" ><span> home </span></a></li>


<li><a href= "#" ><span> boutique script download </span></a></li>


<li><a href= "#" ><span> page templates </span></a></li>


</ul>


</div>


</body>


</html>

I hope this article will help you with the DIV+CSS web design.

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.