Dl,dt,dd made CSS Vertical Menu _ Experience Exchange

Source: Internet
Author: User
Feel with UL and Li somewhat similar, but also is a kind of new idea, source code is as follows:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <title>dl,dt,dd made CSS vertical menu </title> <style type=" text/css "> #menu DL {width:150 px margin:0 Auto; padding:0 0 10px 0; Background: #69c URL (file:///E|/ceshi/media/bottom.gif) No-repeat bottom left;} #menu DT {margin:0; padding:10px; font-size:1.4em; font-weight:bold; color: #fff; border-bottom:1px solid #fff; Backgrou Nd: #69c url (file:///E|/ceshi/media/top.gif) no-repeat top left;} #menu dd {margin:0; padding:0; color: #fff; font-size:1em; border-bottom:1px solid #fff; background: #47a;} #gallery A, #gallery a:visited {color: #fff; text-decoration:none; display:block; padding:5px 5px 5px 20px; Background: #47a URL (file:///E|/ceshi/media/arrow.gif) no-repeat 10px 10px; width:125px; } #gallery a:hover {background: #258 URL (file:///E|/ceshi/media/arrowr.gif) no-repeat 11px 10px; color: #9cf;} Ol li {font-size:11px;} </style> </pead> <body> <dl id= "Gallery" > <dt>Gallery</dt> <dd>paul Cezan Ne</dd> <dd>henri matisse</dd> <dd>vincent van gogh</dd> <dd>William Turner</ dd> <dd>john constable</dd> <dd>claude monet</dd> </dl> </body> </ptml&gt ;
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
  • 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.