Home › Forums › CSS › Add margin to a specific unordered list › Reply To: Add margin to a specific unordered list
August 19, 2013 at 2:32 am
#147325
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;
}