Hey Good Folks,
I’ve been working on making my contact form mobile friendly, and I’ve hit a snag. The page is here, and the markup and CSS follow.
<form name="contactform" method="post" action="ddc.php" class = "contact">
<legend> Tell Us About Your Case (Y recuerde, con mucho gusto hablamos Español)</legend>
<p> (Asterisks denote required fields) </p>
<table class="formTable" summary = "Estimates of drum repairs">
<!-- <caption> Tell Us About Your Case (Y recuerde, con mucho gusto hablamos Español) </caption> -->
<!-- <thead>
</thead> -->
<tbody>
<tr>
<td valign="top">
<label for="name" class = "fixedwidth">Name *</label>
<input type="text" name="name"/>
</td>
</tr>
<tr>
<td valign="top">
<label for="email" class = "fixedwidth">Email *</label>
<input type="text" name="email"/>
</td>
</tr>
<tr>
<td valign="top">
<label for="telephone" class = "fixedwidth">Phone #</label>
<input type="text" name="telephone"/>
</td>
</tr>
<tr>
<td valign="top">
<label for="comments" class = "fixedwidth">Comments *</label>
<textarea name="comments" cols="40" rows="8"> </textarea>
</td>
</tr>
</tbody>
</table>
<div>
<p> If we need to call you back for any more info, what would be the best time to call you on the number
provided? Please be sure to provide a number where you can actually be reached - phone tag is a waste
of everybody's time.
</p>
<input type = "radio" name= "timetocall" id = "morning" value = "In the morning" />
<label for = "morning"> In the morning </label>
<br/>
<input type = "radio" name = "timetocall" id = "afternoon" value = "In the afternoon" />
<label for = "afternoon"> In the afternoon </label>
<br/>
<input type = "radio" name = "timetocall" id = "evening" value ="In the evening" />
<label for = "evening"> In the evening </label>
<br/>
<input type = "radio" name = "timetocall" id = "never" value = "never" />
<label for = "never"> Never </label>
<br/>
</div>
<p> <div class = "buttonarea"> <input type="submit" name="send" value="Send Your Message"/> </div> </p>
</form>
form.contact fieldset {
border:0.14706em solid navy; /* 1px */
padding:0.7353em; /* 10px */
}
form.contact legend {
font-weight: bold;
font-size: 1em;
color: navy;
padding: 0.3846em; /* 5px */
}
form.contact {
padding: 0 0;
margin-top: -1.10295em; /* -15px */
marginheight: 150%;
border:0.2em solid #FFF; /* 2px */
-moz-box-shadow:0 0 0.58825em 0.294125em #048; /* 8px 4px */
-webkit-box-shadow:0 0 0.58825em 0.294125em #048; /* 8px 4px */
box-shadow:0 0 0.58825em 0.294125em #048; /* 8px 4px */
float:left;
margin:0 0 1.1765em 1.1765em; /* 16px 16px */
background:#eae8f2;
}
form.contact label {
font-weight: bold;
font-size: 1em;
color: blue;
}
form.contact label.fixedwidth {
display: block;
width: 100%; /* 34.485%; 240px */
float: left;
}
form.contact .buttonarea {
background: #bed8F3 url(Images/taglineBackground.png) repeat-y right;
text-align: center;
padding: 0.294125em; /* 4px */
}
form.contact .buttonarea input {
background: navy;
color: white;
font-weight: bold;
padding: 0.375em; /* 5px */
border: 0.075em solid white; /* 1px */
}
I think what’s going on is the page scales down OK until it reaches the 40 columns I’ve assigned the text area for the input. How do I correct this?
I’d also like the font for the legend and labels to scale down. I’ve tried percentages and ems, but that’s had no effect. Will I have to use media queries or is there an easier way?
Thank you in advance.