When resizing a browser, the input fields do not resize properly and end up overlapping each other in the middle, causing distortion before the media script adjusts everything to 100%. The width of the text area set to 100% does not align with the forms. Figuring out this contact form has been quite challenging, and I haven't even attempted to tackle getting it to send an email yet!
Click here to view the design.
Bonus query: Why must the input be wrapped in a span, or it completely disregards the parent divs' boundaries?
Per your request, you can find the JSFIDDLE script here.
.Block {
width: 100%;
background-color: #edeeef;
padding: 50px 0;
}
.Block:nth-of-type(odd) {
background-color: #ffffff;
}
.Block:After {
content: '';
display: block;
clear: both;
overflow: hidden;
Zoom: 1;
height: 0;
}
.BlockWrapper {
text-align: center;
Max-Width: 60%;
margin: 0 auto;
}
.BlockSizer1, .BlockSizer2, .BlockSizer3 {
float: left;
text-align: left;
}
.BlockSizer1 {
Width: 100%;
}
.BlockSizer2 {
width: 49%;
}
.BlockSizer3 {
width: 33%;
}
#ContactForm {
Padding: 5px;
}
#ContactForm span {
width: 49%;
padding: 5px 0 0 0;
display: inline-block;
}
#ContactForm > .textarea {
width: 100%;
}
#ContactForm > .textarea textarea {
width: 98%;
Min-Height: 200px;
margin: 1em 0 1em 0em;
}
#ContactForm input {
width: 92%;
color: #999999;
outline: none;
padding: 10px;
Border: 1px solid #a0a0a0;
}
.ContactFormButton, .ContactFormButton input {
Width: 100% !important;
}
@Media screen and (max-width: 1000px) {
div.ContactForm, div.ContactFormRight {
width: 100%;
Margin: 5px 0;
float: none;
padding: 0;
}
}
textarea.ContactForm {
width: 100%;
padding: 10px;
Min-Height: 200px;
}