I have the following CSS:
#sidebar ul.banners {
width: 91.32791327913279%;
margin-right: 4.336043360433605%;
padding: 0 !important;
list-style: none;
}
#sidebar ul.banners li {
width: 100%;
display: block;
position: relative;
}
#sidebar ul.banners li + li {
margin-top: 1em;
}
#sidebar ul.banners li img {
max-width: 100%;
height:auto;
display: block;
position:absolute;
top: 0;
left: 0;
z-index: -1;
}
and the following HTML
<aside id="sidebar">
<ul class="banners">
<li><img src="/../images/page_banners/location.jpg"></li>
<li><img src="/../images/page_banners/offers.jpg"></li>
<li><img src="/../images/page_banners/links.jpg"></li>
</ul>
</aside>
For some banners in the sidebar, but the banners are displaying on top of eachother with the 1em top-margin from li + li.
What am I overseeing?