We would like to know how to add border-bottom and border left to wrapping text for list item.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
ul {<!-- www .j a v a2s . co m-->
text-align: center;
padding: 10px;
border: 2px solid green;
list-style:none;
width: 150px;
}
li {
width: 100%;
margin: 10px 0 10px;
border-bottom: 2px solid red;
border-left: 2px solid brown;
}
li a {
text-decoration: none;
}
</style>
</head>
<body>
<ul>
<li><a href="">this is a test</a></li>
<li><a href="">this is a test</a></li>
</ul>
</body>
</html>
The code above is rendered as follows: