Dl dt dd instance

Source: Internet
Author: User
<Body> <Div class = "head"> <Div class = "logo"> front-end development tutorial </div> <Div class = "nav"> <ul> <li class = "current"> <a href = "#"> CSS </a> </LI> <li> <a href = "#"> HTML </ a> </LI> <li> <a href = "#"> JavaScript </a> </LI> <li> <a href = "#"> jquery </ a> </LI> <li> <a href = "#"> Ajax </a> </LI> </ul> </div> <Div class = "tab "> <Div class =" DC "> <DL> <DT> CSS basics </DT> <dd class =" current "> <a href =" # "> CSS introduction </a> </DD> <a href = "#"> basic CSS syntax </a> </DD> <a href = "# "> CSS advanced syntax </a> </DD> <a href =" # "> CSS derived selector </a> </DD> 

* {Padding: 0px; margin: 0px;} body {padding: 0px; Font: 14px normal 'Microsoft yahei'; Height: 3000px;} A {text-Decoration: none ;} a: link {color: #000000 ;}. tab DL {margin-left: 8px; display: inline; width: 240px ;}. tab DL dt {Font: 16px normal 'Microsoft yahei'; Background: # 39f; display: inline-block; width: 200px; Height: 20px; padding: 10px; margin-bottom: 10px;} dd {margin-left: 30px; line-Height: 25px ;}. head {width: 60%; Height: 80px; margin: 0px auto; Background: # 39f; padding-top: 30px ;}. logo {font-size: 30px; font-family: ''; color: # FFF; text-indent: 30px; // indent }. tab {width: 60%; Height: 1800px; Border: 1px solid # CCC; margin: 0px auto ;}. NAV {width: 60%; Height: 20px; margin: 0px auto; margin-bottom: 20px; margin-top: 10px ;}. NAV ul {list-style: none; font-size: 20px ;}. NAV Li {float: Left; margin-left: 30px ;}. NAV Li. current {border-bottom: 3px solid # cc0000 ;}. NAV Li A: hover {border-bottom: 3px solid # cc0000 ;}. content {margin-top: 10px; margin-left: 15px; clear: Both; width: 98%;} H2 {font-weight: normal;} HR {width: 98% ;}. pageto A {display: block; float: Left; width: 60px; Height: 25px; Background: # f5f5f5; margin-left: 30px; text-align: center; margin-top: 5px; padding-top: 5px; margin-bottom: 5px ;}. HRC {width: 98%; Border: 3px solid # CCC ;}. right {Height: 1100px; Background: # ff0; width: 570px; float: Right ;}. tab Div {float: Left ;}

Dl dt dd instance

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.