5
I have a situation where I define the padding
of a div
within the header
with:
#header_inn{
padding: 5px 2%;
width: 96%;
}
I want them to padding
s top
and bottom
have exact 5px
, but the bottom gets bigger, different from the top, which is with the 5px
, but the bottom got double, 10px
(measured in Photoshop).
Behold:
Why the padding
bottom gets bigger? What am I doing wrong or failing to do to generate this unwanted and inaccurate space?
Follows the code:
body{
margin: 0;
background-color: #000;
font-size: 20px;
color: #fff;
}
header{
background-color: #51090e;
border-bottom: 1px solid #7e0e16;
}
footer{
background: green;
}
#header_inn{
padding: 5px 2%;
width: 96%;
}
#header_inn img{
height: 53px;
}
<header>
<div id="header_inn">
<img src="https://www.cleverfiles.com/howto/wp-content/uploads/2016/08/mini.jpg">
</div>
</header>
<main>
main
</main>
<footer>
footer
</footer>
I think this is where you needed help, right. But there’s no better answer than Guilherme’s. There are hours that I myself come to consult here a response I already gave and I can’t remember how I had solved rss. []s
– hugocsl
Man these days I’m hardly going into the night, but during the days I’m in the area, what’s one thing to say.
– hugocsl
Guy just like that I never did, but with
transition
vc can play a little with http://cubic-bezier.com to see if you arrive at a result that suits you. If it doesn’t suit you and you need exactly X time to go and 2X time to come back I think using two @kayframes one on :Hover and the other when taking the :Hover might be that you can, but then you have to test because I never did exactly like this.– hugocsl
Blz... I’ll post a question then. Obg!
– Sam
Funny, isn’t it? Acceptance undone after months, with no new response, because you say you don’t take things personally, or you say you don’t mix things up, and strangely it was after that post in Meta. It’s good to know, so I won’t lend myself to helping you with any of your questions.
– Guilherme Nascimento