We would like to know how to avoid double borders for ul li.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
ul {<!--from ww w . jav a2s .c om-->
border: 1px solid grey;
}
li+li {
border-top: 1px dotted grey;
}
</style>
</head>
<body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
</body>
</html>
The code above is rendered as follows: