Estilos para un buscador con CSS

HTML
<nav>
    <div class="cont">
        <label>Buscar</label>
        <input type="search" placeholder="en esta Web" title="Presione Esc para supender la búsqueda">
    </div>
</nav>
CSS
nav{
    width:100%;
    height:60px;
    font-family:sans-serif;
    background:#aeb6bf;
    border-bottom:4px solid rgba(0,0,0,0.1);
}

.cont{
    height:100%;
    padding-top:0px;
    float:right;
}
.cont label{
    color:#797d7f;
    font-size:12.9px;
}

input[type="search"]{
    width:170px;
    margin:10px;
    padding:10px 16px;
    border-radius:32px;
    outline:none;
    border:2px solid #ccd1d1;
    background:#aeb6bf;
    transition:all 0.5s;
}
input[type="search"]:focus{
    background:#fff;
    width:300px;
}

Autor: Diego

Publicado: 11/03/2019

Compartir Elemento Web

Donar a Compositu
Otras formas de ayudar
  • Compártelo en tus redes sociales.
  • Recomienda los elementos.
  • Regístrate Aquí
  • Deja tu comentario agradeciendo el aporte.

Descarga el código completo del Elemento Web y archivos necesarios (imágenes, librerias, plugins, frameword, etc)


Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/clas88ie/public_html/lib/general.php on line 254

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/clas88ie/public_html/lib/general.php on line 254

Deja tu comentarioComentarios 1

Saymon Hace 7 años
Sólo con CSS???? interesante amigo ,siempre tengo problemas con los prefijos.A ver si funcionar
0 0 | Responder | Reportar spam