I can't quite figure this one out. I modified the contact form in Chris's Tutorials. The page validates except for some jquery validation hooks and it looks perfect in FF and Safari, nearly perfect in IE7, and completely "borked" in IE6. I KNOW I'm using a trans png for the send button and I've got to tweak that for IE6, but my issue is that the "Message" box is not floating right in IE6, and it is instead appearing below the left float.
<h1>Contact</h1> <p class = 'centered'> Please fill out the form below and someone will contact you as soon as possible. Thank you. </p> <div id = 'contactForm'> <form method = \"post\" action = \"contactEngine.php\" id = \"resChurchContact\">
<div id = 'formLeft'>
<label for=\"Name\">Name</label> <div class = 'input-bg'> <input type = 'text' id = 'Name' name = 'Name' class = 'required' minlength = '2' tabindex = '1'> </div>
<label for=\"Email\">Email</label> <div class = 'input-bg'> <input type = 'text' id = 'Email' name = 'Email' class = 'required email' tabindex = '2'> </div>
<div id = 'send-but'> <input type = 'image' id = 'Submit' name = 'Submit' src = '<?php echo $imagesDir?>contact/trans.png' tabindex = '4'> </div> </div>
<div id = 'formRight'> <label for=\"Message\">Message</label> <div class = 'message-bg'> <textarea name = 'Message' id = 'Message' class = 'required' rows = '10' cols = '20' tabindex = '3' minlength = '2' ></textarea> </div>
When you float a DIV like that, you should always apply a WIDTH. Try adding widths for both the sides and see if that helps. Different browsers will calculate that box differently if this is missing.
As Chris mentioned, this symptom in IE6 is invariably a width issue. IE6 Can't add up! Remember that.
Try knocking a couple of pixels off the floated width - but do so as a conditional comment otherwise you'll affect the good browsers the render sites properly.
Thanks for the help guys. I will be trying that tonight. I'd love to follow Apple's MobileMe stance and disregard IE6 completely, but alas, I must please the client. BTW, script & style made it into my bookmarks bar immediately, great idea, already getting some great stuff there. Keep up the good work!
url is: http://www.underthebedstudios.com/Resto ... ontact.php
Here's the relevant code:
HTML:
CSS:
Can anybody catch anything I'm missing? Here are the screenshots:
Firefox (Correct)
http://www.underthebedstudios.com/Picture1.png
IE6 (Borked)
http://www.underthebedstudios.com/Picture2.png
Many thanks in advance!
float:left;
padding: 0 0 0 5px;
}
When you float a DIV like that, you should always apply a WIDTH. Try adding widths for both the sides and see if that helps. Different browsers will calculate that box differently if this is missing.
Try knocking a couple of pixels off the floated width - but do so as a conditional comment otherwise you'll affect the good browsers the render sites properly.