It looks like you're new here. If you want to get involved, click one of these buttons!
ul {margin:0px; }
Or;
ul { padding:0px; margin-top:0px; margin-bottom:0px; margin-right:0px; margin-left:0px; }
I don't think the padding property did anything, but I left it. I just had "margin:0px", but I wanted to be more specific since the desired result wasn't achieved. The results are identical.
Comments
It really doesn't bother me. I just don't know why the second one is there. I guess lists always add one <br>? I mean, that's fine if they do.
[quote]Ending a line with \ will cause that line break to be removed from the rendered text. This can be useful when dealing with long chains of if macros.
If not, the other thing I can think of, if the <br> is inside the <ul> or inside a <div> or something, is to style line breaks inside ordered lists (or inside a div, or whathaveyou) to have a vertical height of zero. I don't know if it's actually possible to style <br>'s that way, but I know you can do that to a lot of HTML elements with CSS.
Edit: Okay, looks like you wouldn't literally give the <br> a line height of zero: How to change the height of a <br>?.
There's a lot of solutions listed there but this sounds easy: "You don't seem to be able to adjust the height of a BR, but you can make it disappear reliably using display:none"
The hard part, possibly, would be applying it only to the specific <br> that you want to get rid of.
Really? I just tried a demo right now and I only saw one:
Again, it doesn't bother me. I'm sure the white space is there for good reason, I just don't know what that is (nor, at this point, am I all that interested ).