How can I add a line break in an HTML list?
I've got this: <ul> <li>yahoo<li> <li>yahoo<li> </ul> How can I make it look like this in the browser?: -yahoo -yahoo My main question is how can I add the line break between the bullets in there? I tried this: <ul> <li>yahoo<br><li> <li>yahoo<li> </ul> And it works in Internet Explorer, not in Firefox, so I've tried this: <ul> <li>yahoo<br><li><br> <li>yahoo<li> </ul> It works in both Internet Eplorer and Firefox, but the <br> not inside the <li> is not allowed, and so I'm stuck with the problem. Please help me. Thank you.
Public Comments
- <br>
- do this <ul> <li>yahoo</li> <br> <br> <li>yahoo</li> </ul> never forget the / Added: Test this out goto C:\ right-click and scroll to new click text document write down your html and click save as type test.html and click save then open it....you should see how it works. (if that doesn't work, look for the thing where you can change from .txt to all files, then save it as test.html)
- Anytime you want to put a blank line break make sure that you put a non-breaking space after it " ". <li>yahoo<br> </li> <li>yahoo<br> </li> Browsers automatically remove blank lines, but if you have a html character on the line it will not remove it. non-breaking space code: ampersand + nbsp + semicolon. Had to write it out. Yahoo! Answers converts the html code.
- This is cross browser compatible... <ul> <li>Link 1</li> </ul> <ul> <li>Link 2</li> </ul> Works in IE and Firefox!
- <br>
Powered by Yahoo! Answers