Forum Moderators: not2easy
-----------
List item 1<br>
List item 2<br>
List item 3<br>
-----------
But if I've got long items, the display comes out more like this:
-----------
Fairly long
List item 1<br>
Fairly long
List item 2<br>
Fairly long
List item 2<br>
-----------
I'd like to add a little space between the items so it looks more like:
-----------
Fairly long
List item 1
Fairly long
List item 2
Fairly long
List item 3
-----------
This list is software generated. I can hack the code to turn the <br> tags into <p> tags or add another <br> to get the spacing, but is there a way to do this with CSS? I'd prefer just to edit the style sheet so that future code upgrades are easy to implement.
I think the issue is that the entire list is in a <div>, e.g.,
<div class="list">
List item 1<br>
List item 2<br>
List item 3<br>
</div>
So, without adding classes to each line, can I increase the spacing?
I can hack the code to turn the <br> tags into <p> tags or add another <br> to get the spacing, but is there a way to do this with CSS?If you're already willing to hack the code, why not hack it a little more to generate the semanticly correct HTML: a ul with li's? That would seem to be the best solution.