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