Ul+li and CSS to make Korean style menu code _ Experience Exchange

Source: Internet
Author: User
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > < HTML xmlns= "http://www.w3.org/1999/xhtml" > <pead> <meta http-equiv= "Content-type" content=; Charset=utf-8 "/> <title>www.jb51.net</title> <style type=" Text/css "> <!--* {font-size:13px; Font-family:arial;} #nav li {list-style:none width:200px; margin-top:5px;padding:4px 6px;} #nav Li a {text-decoration:none; color: #666;} #nav li a:hover {color: #000;} . AA {border-top:4px solid #7BC110; background: #be6;} . bb {border-top:4px solid #ff9900; background: #fc3;} . cc {BORDER-TOP:4PX solid #ff66ff; background: #fcf;} --> </style> </pead> <body> <ul id= "nav" > <li class= "AA" >css Templates free Download </li> <li class= "BB" >css WebSites Showcase </li> <li class= "CC" >css Web design Article Gt </ul> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

South Korea's Web site features a distinctive design style, bright colors, and now more and more people are imitating this style.

Korean style of web site design ideas are loved by everyone, because of its rich color changes, Korean style of the site has a most obvious feature is for the table or the title bar often add horizontal or vertical a ribbon. We usually have image image software to make such an effect, the picture volume is large, download slower. We can use CSS to do this style, because with CSS just for style definition, do not need to apply pictures, download speed will be greatly accelerated.

First we define the list items, the width of the outer margin and the inner margin. Then set the style of the linked text. We use the Class AA, BB, cc to define the color of the different list items, in the definition of these three classes, we define the top box to be 4px. Which is the most common color band in Korean style.
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.