0
because my css when I add the following snippet of code into my input happens this:
#container-header{
height: 50px;
width: 100%;
background: #252525;
position: fixed;
top: 100%;
transform: translateY(-100%);
}
#container-header #container-header-search{
position: relative;
top: 50%;
transform: translateY(-50%);
}
#container-header #container-header-search form input{
padding: 8px;
border: 1px solid white;
background: none;
color: white;
outline: none;
width: 500px;
display: inline-block;
width: 400px;
}
<header>
<div id="container-header">
<div id="container-header-search">
<form>
<input type="text" placeholder="Buscar">
<button>Ok</button>
</form>
</div>
</div>
</header>
is with that effect "Blur" very ugly
I didn’t notice much Lur... vc refers to the thickness of the side borada to be different from the upper and lower edges?
– hugocsl
yes that’s right, it doesn’t happen when I take the "Transform"
– Yoskirtt
if I add margin-top: -1px; the problem goes away, only that I really wanted to know the cause of it.
– Yoskirtt
The problem is the rendering of the browser when it adjusts the x/y axis of the element. To correct only in the "way" anyway, I was going to suggest you put so
transform: translateY(-50%) scaleY(0.98)
, but this too is a gambiarra...– hugocsl
I’m used to using kkkkkk gambiarras
– Yoskirtt