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

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

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

1 answer

flavicius 118
1
point
This was chosen as the best answer

What about CSS margin or padding? :)

<style>
li {margin-bottom: 10px;}
</style>
Answered almost 7 years ago by flavicius
  • I tried that before and it didn't work. Must have just spelled it wrong or something. k thx. canyonchase1 almost 7 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 almost 7 years ago