Hello,
I’ve been messing with lists and css and I was wondering why there is a space between my two divs.
see example below…
I made a container div, a banner div and then a nav div. I put the lists in the nav div and it adds a space between banner div and nav div. my question is how do I remove this space and why is it there?
here is the code i have so far
<body>
<div class=“container”>
<div class=“banner”>Banner to be placed here </div>
<div class=“nav”><ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5 </li>
</ul></div></div>
</body>