What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 130 Stack Exchange communities.

Sometimes I need to style my lists like so:

  • Item #1
    • Sub-Item #1
    • Sub-Item #2
  • Item #2
    • Sub-item #3

For some reason it's impossible to add an extra line between Sub-item #2 and Item #2.

Look at this answer to see what I am talking about (after "syck," I used a dot to create a space)

Is there a better way to this?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You can add <br/> elements.

 * Item #1
   * Sub-Item #1
   * Sub-Item #2
<br/><br/>
 * Item #2
   * Sub-Item #3

produces:

  • Item #1
    • Sub-Item #1
    • Sub-Item #2

  • Item #2
    • Sub-Item #3
share|improve this answer
    
Should be <br/> –  Uphill Luge Sep 11 '10 at 17:03
    
@Hans - strictly speaking it should, but most (if not all) browsers cope with <br> –  ChrisF Sep 11 '10 at 17:05
    
@Hans: Stackoverflow does not use XHTML. If you view source, you should see a lot of <br>. –  KennyTM Sep 11 '10 at 17:06
1  
I changed it, but <br/> isn't necessary. –  Rebecca Chernoff Sep 11 '10 at 17:07

You could use &nbsp; instead of a dot, which makes the hack less visible.

  • Item #1
    • Sub-item #1
    • Sub-item #2
       
  • Item #2
    • Sub-item #3
share|improve this answer
    
That was my first attempt but it didn't seem to work. –  Rebecca Chernoff Sep 11 '10 at 17:09
    
@rchern: Works on Firefox. The source code: meta.stackoverflow.com/revisions/… –  KennyTM Sep 11 '10 at 19:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .