The method of making news list in div+css typesetting _css/html

Source: Internet
Author: User
Tags dashed line
CSS code:

. list{margin:0px 10px 20px; text-align:left;}. List ul{list-style-type:none; margin:0px; padding:0px;}. List li{Background:url (/news/images/line.gif) Repeat-x bottom;  /* Dashed line at the bottom of the list */width:100%; }.list li a{color: #777777; display:block; padding:6px 0px 4px 15px; Background:url (/news/images/dot.gif) no-repeat 0 6px; /* The arrow to the left of the list */}.list Li span{float:right;/* to float the span element to the right. */text-align:right;/* date align */}.list li a:hover{color: #336699; Background:url (/news/images/dot2.gif) Repeat-x Bottom;}  

Note: span must be placed in front, whereas a newline will be generated.

 
 
 
  • News Title 01
  • News title 02
  • News Title 03
  • News Title 04
  • 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.