How CSS removes the underline of the last news from the news list

Source: Internet
Author: User
Tags dashed line

How CSS removes the underline of the last news from the news list:
This section shares a comparison of the effects of how to remove the underline from the last news list.
In many news list effects, under each news there is a dashed line or any other form of underline, in short, it feels more beautiful, but often the last news is not required this underline, the following describes how to achieve this effect.
The code is as follows:

<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.softwhy.com/" /><title>Ant Tribe</title><styletype= "Text/css">*{margin:0;padding:0;}#antzone Li{Border-bottom:1px #ccc dotted;font-size:12px;Height:25px;Line-height:25px;}#antzone ul{Margin-bottom:-1px;width:300px;}#antzone{Overflow:Hidden;margin:100px;}</style></Head><Body><DivID= "Antzone">  <ul>    <Li>Ant Tribe welcome you, only hard struggle will have a better tomorrow.</Li>    <Li>No one is a master at first, and must be worked through.</Li>    <Li>Every day is new, cherish it well.</Li>    <Li>Sharing mutual assistance is the most important source of progress.</Li>    <Li>Then the current time is real and the next second is unreal.</Li>  </ul></Div></Body></HTML>

The above code implements our requirements, the last Li's bottom border is hidden, this is because the UL margin-bottom:-1px, so that the UL will move down a pixel, is obscured by the outer div.

The original address is: How does CSS get rid of the news list last news underline a chapter.

The Web site is: div CSS Tutorial

How CSS removes the underline of the last news from the news list

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.