Css image Genie and css genie

Source: Internet
Author: User

Css image Genie and css genie

<Ul> <li class = "top"> <em> 01 </em> <p> <a href = "http://www.imooc.com/"> [mu ke interview user] diaosi is on the road </a> </p> </li> <li class = "top"> <em> 02 </em> <p> <a href =" http://www.imooc.com/"> [prize activity] to the father of the three lines of correspondence </a> </p> </li> <li class =" top "> <em> 03 </em> <p> <a href = "http://www.imooc.com/"> programmer, please share your childhood award announcement </a> </p> </li> <em> 04 </em> <p> <a href =" http://www.imooc.com/"> [mu class interview] broken cocoon into a butterfly -- the history of the transformation of beautiful programmers </a> </p> </li> <em> 05 </em> <p> <a href = "http://www.imooc.com/"> [award announcement] Catch the "ball" peak, striving to be the "God of prophecy" </a> </p> </li> <em> 06 </em> <p> <a href = "http://www.imooc.com/"> [questionnaire survey] MOOC user learning situation survey </a> </p> </li> </ul>

Image material:


Note: configure the background-position attribute to control the display of different background images for different list items

ul{padding:5px;}li{list-style-type:none;height:30px;}em{width:20px;height:16px;background:url(images/num.gif) no-repeat;display:block;text-align:center;font-style:normal;color:#333;background-position:0 -16px;float:left;}.top em{color:#FFF;background-position:0 0;}p{float:left;}a:link,a:visited{color:#5e5e5e; text-decoration:none;}a:hover,a:active{color:#b52725;text-decoration:underline;}



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.