0
When I put one background
in my <div>
.
HTML code:
<footer>
<div class="footer-top">
<div class="fcontainer">
<div class="frow">
<div class="col-md-3 col-sm-6 col-xs-12 segment-one md-mb-30 sm-mb-30">
<h2>Divinector</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Porro possimus, nam dolor ullam eum, maiores ratione repudiandae in mollitia nulla dolore fuga deleniti facere sequi natus vel, reprehenderit earum hic.</p>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 segment-two md-mb-30 sm-mb-30">
<h3>Links Úteis</h3>
<ul>
<li><a href="#">Eventos</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">Hosting</a></li>
<li><a href="#">Career</a></li>
<li><a href="#">Blog</a></li>
</ul>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 segment-three sm-mb-30">
<h3>Follow Us</h3>
<p>Please follow us on our Social Media Profile in order to keep updated. Lorem ipusm dolor sit amet, consectetur adipisicing leit. Ex, libero.</p>
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 segment-four sm-mb-30">
<h3>Notícias</h3>
<p>Se inscreva para receber notícias relacionadas a inovação e ao mundo do empreendedorismo!</p>
<form action="">
<input type="email">
<input type="submit" value="Inscreva-se">
</form>
</div>
</div>
</div>
</div>
<p class="footer-bottom-text">All Right Reserved by ©IUT-SH</p>
</footer>
And the CSS code: (only the part that matters)
.footer-top{
background: #069370;
padding: 80px 0;
height: auto;
}
body{
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
background-image: linear-gradient(135deg, #a9e5bb, #6EAF82);
background-attachment: fixed;
}
How does it look:
Hello Erick is welcome!! It would be interesting to put the rest of the CSS code to better analyze which part is applying this other shade of green, a very "nut" solution is to switch to
background: #069370 !important;
– Thiago Costa
@Thiagocosta N worked the ! Import and I already edited the code on the question tbm
– Erick Oliveira
Inspect the div element you have
class="segment-two"
and try to locate the background see where it’s coming from– Thiago Costa
@Thiagolight green coast is coming from the body and dark from the div q is the footer-top
– Erick Oliveira
div of the
footer-top
is covering the entire height of the content?– Thiago Costa
is not covering all the time
– Erick Oliveira
how is the height div.footer-top?
– Thiago Costa
@Thiagocosta Before I had nothing but I put auto and continued in the same
– Erick Oliveira