Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Add margin to a specific unordered list Reply To: Add margin to a specific unordered list

#147325
Senff
Participant

In this case, you could target the list in the content part of the site (and not the nav menu) by doing this:

.row ul {
    margin-bottom:20px;
}

Keep in mind that will then add a bottom margin to every list you have in the content of the site.

If you just need to add margin to that particular list and nothing else, indeed you should give the list a class in the HTML, like this:

<ul class="awesome-list">
    <li> Before blah blah blah.... </li>
    <li> We will etc. etc. </li>
    ....

And then add the margin in your CSS like this:

ul.awesome-list {
    margin-bottom:20px;
}