CSS + Div vertical list

Source: Internet
Author: User

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br/> <HTML xmlns = "http://www.w3.org/1999/xhtml"> <br/> <pead> <br/> <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "/> <br/> <title> 3.1 portrait list </title> <br/> <link href =" 3.1.css "mce_href =" 3.1.css "rel =" stylesheet "type =" text/CSS "/> <br/> </pead> <br/> <body> <br/> <Div id =" menue "> <br/> <ul> <br/> <li> <a href = "#" mce_href = "#"> homepage </a> </LI> <br/> <li> <a href = "#" mce_href = "#"> webpage layout </a> </LI> <br/> <li> <a href = "#" mce_href = "#"> Div + CSS tutorial </a> </LI> <br/> <li> <a href = "#" mce_href = "#"> Div + CSS instance </a> </LI> <br/> <li> <a href = "#" mce_href = "#"> Common Code </a> </LI> <br /> <li> <a href = "#" mce_href = "#"> webmasters </a> </LI> <br/> <li> <a href =" # "mce_href =" # "> Technical Documentation </a> </LI> <br/> <li> <a href =" # "mce_href =" # "> resource download </a> </LI> <br/> <li> <a href = "#" mce_href = "#"> image clips </a> </LI> <br /> </ul> <br/> </div> <br/> </body> <br/> </ptml> <br/>

 

CSS file

 

 

# Menue ul {<br/> margin: 0px; <br/> padding: 0px; <br/> list-style: none; <br/>}< br/> body {<br/> font-family: verdana, Arial, Helvetica, sans-serif; <br/> font-size: 12px; <br/> line-Height: 1.5; <br/>}< br/> # menue {<br/> border: 1px solid #669900; <br/> width: 100px; <br/>}< br/> # menue ul Li {<br/> line-Height: 26px; <br/> Background: # Eee; <br/> padding: 0px 8px; <br/> Height: 26px; <br/> border-bottom: 1px solid # CCC; <br/>}< br/> A {<br/> color: #000000; <br/> text-Decoration: none; <br/>}< br/> A: hover {<br/> color: # ff0000; <br/>}< br/>

 

Final effect:

 

 

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.