Is possible to change width of input wihtou using HTML ? i had size="35" and it was all ok on site ( check here(bottom of site)) until i started to write code for mobile. now, size 35 is very wide and i dont know how else can i make it look the same. on mobile version i want to make it in flex-direction: column what am i doing wrong ?
I tried something like this
input [type=text] {
width: 60%;}
but for some reason it only alternate two of my input boxes o_O
thanks
.bcs_za_form {
width: 100%;
background-color: #646C8E;
height: 790px;
}
.textnadform {
padding-top: 50px;
text-align: center;
font-size: 35px;
color: #ffffff;
width: 100%;
font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
}
.zanech {
font-size: 17px;
color: rgba(255,255,255,0.5);
font-weight: 600;
}
.celyform {
width: 100%;
}
.formular_2 {
padding-top: 50px;
display: flex;
justify-content: center;
}
.formular_4 {
border: 1px solid #ffffff;
font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
font-weight: 600;
font-size: 14px;
color: white;
background-color: #646C8E;
padding-top: 25px;
padding-right: 30px;
padding-bottom: 25px;
padding-left: 30px;
border-radius: 10px;
}
.formular_4::placeholder {
color: #ffffff;
}
.prvedva {
margin-bottom: 1%;
flex-grow: inherit;
display: flex;
width: 100%;
}
.druhedva {
margin-bottom: 3%;
flex-grow: inherit;
display: flex;
width: 100%;
}
.druhy {
padding: 0px 0px 0px 20px;
}
.stvrty {
padding: 0px 0px 0px 20px;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
outline: none;
}
textarea:focus ,
input:focus {
color: #3E3E55;
}
<div class="bcs_za_form" id="Kontakt">
<div class="celyform">
<div class="textnadform">
<p class="napismi">Kontaktujte Ma</p>
<p class="zanech">Zanechajte mi odkaz a ja sa vám budem čo najskôr venovať.</p>
</div>
<div class="formular_2">
<form class="formular_3" action="kontakt.php" method="post">
<div class="prvedva">
<input class="formular_4" type="text" name="meno" placeholder="Meno" size="35">
<div class="druhy">
<input class="formular_4" type="text" name="priezvisko" placeholder="Priezvisko" size="35">
</div>
</div>
<br>
<div class="druhedva">
<input class="formular_4" type="text" name="telcislo" placeholder="Tel. číslo" size="35">
<div class="stvrty">
<input class="formular_4" type="text" name="mail" placeholder="Váš E-mail" size="35">
</div>
<br>
</div>
<div class="">
<textarea class="formular_4" name="sprava" placeholder="Správa" cols="85" rows="8"></textarea>
</div>
</form>
</div>