how do i space out my ul list? heres what I'm talking about

  <li>as fl dflja fjlaksdfj saflk </li>
  <li>as fl dafj aljsfkd flaskjdf</li>
  <li> asldfj dlfakjlsd fjaslf a sda sfj</li>

I want to space out the 3 sentences. i want them to be about 10px underneath each other each.

1 answer

flavicius 118
This was chosen as the best answer

What about CSS margin or padding? :)

li {margin-bottom: 10px;}
Answered over 9 years ago by flavicius
  • I tried that before and it didn't work. Must have just spelled it wrong or something. k thx. canyonchase1 over 9 years ago
  • margin and padding are the best methods to achieve what you want. Other methods include adjusting line-height (if only one line) or border (same color as background). o.k.w over 9 years ago