Bug of Blur in input

Asked

Viewed 50 times

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

inserir a descrição da imagem aqui

  • I didn’t notice much Lur... vc refers to the thickness of the side borada to be different from the upper and lower edges?

  • yes that’s right, it doesn’t happen when I take the "Transform"

  • if I add margin-top: -1px; the problem goes away, only that I really wanted to know the cause of it.

  • 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...

  • I’m used to using kkkkkk gambiarras

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.