May 8, 201016 yr Hello Was wondering if anyone could help me with forms. I want to know how to make the boxes appear below their label in Internet Explorer. (fine in Chrome) In Chrome browser the form looks like I want it to, but doesn't in IE, any ideas how to solve this? Thank you in advance http://www.marble-design.co.uk/contact.html
May 8, 201016 yr A quick fix would be to add "margin-left: -200px;" to "#contactform input" & "#contactform textarea". Then use an <!--[if lte IE 7]> conditional comment to pull a separate style sheet with it in. The proper way to do it would be to put the following in your CSS: p.form { float: left; padding-left:160px; display:inline; } Then change the p class of your form from "contactdetails" to "form". <p class="form"> <br/><label for="name">Name:</label> <br/><input type="text" name="name" id="name"/> <br/> etc, etc, etc......... </p>
May 9, 201016 yr Author Thanks everso much for help. I decided to use proper way and put in p.form as suggested, now works great in IE! but unfortunately no white background in Chrome or Safari, tried putting in various things, but haven't managed to solve it. Any more ideas would be greatly appreciated Thanks
May 9, 201016 yr It may just be a float issue, so you could try deleting "float:left;" out of "p.form" and seeing if that makes a difference. I can't really tell without seeing the problem though, could you upload the new version onto your server so I can have a quick look?
Create an account or sign in to comment