I want to increase the line separator height between li tags.
I have tried using height:100% but it is not working.
Am I following the right approach. Can anyone help?
CODE:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
li {
display:inline;
list-style-type:none;
padding-left:1em;
margin-left:1em;
border-left:1px solid #ccc;
}
li:first-child {
border-left:none
}
</style>
</head>
<body>
<table cellspacing="0px;" style="border-top-width:0.1px;
border-top-style:solid;border-top-color:#ccc; border-bottom-color:#ccc;
border-bottom-style:solid; border-bottom-width:0.1px;">
<tr>
<td><ul>
<li><a href="#">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
</ul></td>
</tr>
</table>
</body>
The problem is that you have set the
lielements todisplay:inline;.inlineelements can’t takeheight. Instead, use eitherdisplay:inline-block;orfloat:left;anddisplay:block;