<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