2
Hello, I need to make a diagonal form. But the form letters get crooked together "search in store". Someone can solve this with CSS?
HTML Used
<div id="search" class="col-xs-10 search search-form" style="padding-right: 0px;">
<input class="form" type="search" placeholder="Buscar na loja" name="palavra_busca" style="padding-top: 0px; height: 37px;">
</div>
CSS Second-hand
#search{
-moz-transform: skewX(-40deg);
-webkit-transform: skewX(-40deg);
-o-transform: skewX(-40deg);
-ms-transform: skewX(-40deg);
transform: skewX(-40deg);
}
What I’ve seen about this is that you create a DIV with this formatting and the text inside you apply the rule over passing the negative values and right, now in a text input I don’t know if it will be possible, because this css property assigns the effect to the element as a whole.
– Rodrigo Santos
related: Side-to-side Divs with triangular tip
– Pedro Sanção