2
Hello,
I’m trying to make the side banner stop before standing over the footer as picture below, but I could not find a way to make this stay fixed on the side of the page and not stand over the footer of the page.
HTML code:
<section class="noticia">
<header>
<h1>titulo noticia</h1>
</header>
<article>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc non mauris mi. Sed a ullamcorper massa. Nulla sed efficitur odio, id porttitor mauris. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut porttitor tincidunt magna, at molestie libero pretium a. Duis placerat pretium fermentum. Mauris facilisis, erat ac accumsan ultrices, nunc mauris blandit risus, at venenatis ipsum ipsum ut lectus. In ac rhoncus felis. Suspendisse facilisis convallis condimentum. Donec volutpat lorem nec neque commodo luctus. Donec tempor facilisis varius.</p>
</article>
<div class="fixo">
<img src="images/imagem300x250.png"/>
</div>
</section>
CSS code:
.fixo {
z-index: 99;
position: fixed;
top: 380px;
left: 75%;
display: inline-block;
}
If your footer is responsive, the Hugocss response won’t work.
– Sam
That’s why we have @media... They are there to fix the CSS in responsiveness... But I believe a response in js is welcome
– hugocsl