-1
Good guys, I went for a job interview and asked me to develop a simple form with label and input and a textarea, only this form has to be responsive, and work on all types of devices.
I started doing, follow the HTML code
HTML
.formContato textarea {
resize: none;
}
.formContato label {
vertical-align:top;
}
<div class="container">
<form class="formContato">
<div>
<label>Nome:</label>
<input type="text">
</div>
<div>
<label>E-mail:</label>
<input type="email">
</div>
<div>
<label>Mensagem:</label>
<textarea></textarea>
</div>
</form>
</div>
I’m having trouble making it responsive, can anyone tell me how to do that? (Using only native CSS)
Pure HTML is always responsive. It starts to stop being when the designer starts locking the elements manually.
– Bacco
Put this in your CSS for now
input, textarea { width: 100%; }
. And will study on @media querys, flexbox etc.– hugocsl
How so ? So only if I make a form, it fits to any device ?
– Victor OCV
Also, if you are developing, you will need to raise the project requirements and define when they were satisfied or not.
– Woss