I'm trying to create a customised list with the list-style-image command,, substituting the bullets with my own images. The problem I have is that the image refuses to line up with the middle of the text and instead appears at the top of the line (above text) which makes it look odd.
Reading through other help files, this seems to be a known problem. My question: is there a command which will ensure that the bullet image lines up with the middle of the text?
The unordered list will need to accomodate five levels (indented) - in the code the first two levels are shown. Line Height has been added to give additional spacing between text.
The CSS code is:
li.first {
list-style-image: url('images/level1.gif');
line-height: 5em;
}
li.second {
list-style-image: url('images/level2.gif');
line-height: 3em;
}
The HTML code (abbreviated)is:
[list]
<li class="first">First level text goes here</li>
[list]
<li class="second">Second level text</li>
<li class="second">Second level text</li>
</ul>
<li class="first">First level text goes here</li>
</ul>
The not-so-great-looking result can be seen here:
http://www.wroxham.net/teststuff/tn5_sitestructure.html
with the first bullet (L1) clearly above the text, not at the same height.
If anybody knows the way around this, would be greatly appreciated! :)