Form Positioning - Works in IE, not in FF

This is a discussion on "Form Positioning - Works in IE, not in FF" within the Web Page Design section. This forum, and the thread "Form Positioning - Works in IE, not in FF are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 13th, 2006, 10:21
SuperMember

SuperMember
Join Date: Dec 2005
Location: Aberdeen
Age: 25
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Form Positioning - Works in IE, not in FF

I'm having a problem with a form on this page http://www.f5webdesign.co.uk/v3/contact.htm.

It positions fine in IE, but in FF it is way off to the right. The CSS that is specific to the layout of this page is:

Code: Select all
label
{
width: 7em;
clear:both;
float: left;
text-align: right;
margin-right: 0.5em;
display: block;
}
 
.submit input
{
margin-left: 7.5em;
} 
input
{
color: #000;
background: #ddedff;
border: 1px solid #2c86f3;
}
textarea
{
color: #000;
background: #ddedff;
border: 1px solid #2c86f3;
}
.submit input
{
color: #fff;
background: #0033cc;
border: 2px outset #d7b9c9;
}
fieldset
{
border: 1px solid #2c86f3;
width: 400px;
}
legend
{
color: #fff;
background: #0033cc;
border: 1px solid #2c86f3;
padding: 2px 6px;
} 
#content span.contact1 {
 float:left;
 display:block;
 width:200px;
 margin:0 0 0 auto;
 border:0;
 text-align:left;
}
#content span.contact2 {
 float:left;
 display:block;
 width:200px;
 margin:0 auto 0 0;
 border:0;
 text-align:left;
}
#content #formcontainer {
 display:block;
 width:400px;
 margin:0 auto 1.25em auto;
 border:0;
 padding:0;
}
and the HTML for the div that holds the form is:

HTML: Select all
<div id="content">
<img src="images/contacthead.jpg" alt=""/>
<div id="formcontainer">
<span class="contact1">
<span class="f5web">F5 WEBDESIGN</span><br/>
Riverview Business Centre,<br/>
Centurion Court,<br/>
North Esplanade West,<br/>
Aberdeen<br/>
AB11 5QH
</span>
<span class="contact2">
Tel - 01224 643641<br/>
Mob - 07834 186058<br/>
Email - <a href="mailto:info@f5webdesign.co.uk">info@f5webdesign.co.uk</a>
</span>
<fieldset>
<legend>Contact Us</legend>
<form method="post" action="http://homepages.force9.net/cgi-bin/form">
<p><input type="hidden" name="recipient" value="info@f5webdesign.co.uk" />
<input type="hidden" name="subject" value="Contact Form Submission" />
<input type="hidden" name="redirect" value="http://www.f5webdesign.co.uk/v3/formsubmit.htm" />
<input type="hidden" name="subject" value="Site Feedback" />
<input type="hidden" name="realname" value="Website Form" /></p>
<p><label for="Name">Name*</label> <input type="text" name="Name" id="Name" /></p>
<p><label for="companyname">Company Name</label> <input type="text" id="companyname" name="Company Name"/></p>
<p><label for="number">Phone Number</label> <input type="text" id="number" name="Phone Number" /></p>
<p><label for="e-mail">E-mail</label> <input type="text" id="e-mail" name="Email" /></p>
<p><label for="query">Your Query</label> <textarea name="query" cols="" rows="6" id="query"></textarea><br /></p>
<p><input type="submit" value="Submit" />
<input name="Reset" type="reset" value="Reset" />
</p>
</form>
</fieldset>
</div>
The form doesn't want to drop below the text that's in 'span class="contact2"' and I can't work out why. I've tried some use of 'clear' but it didn't work, but not sure if I was using it right.

It is CSS and XHTML 1.0 valid.

Any help greatly appreciated!

Cheers
Reply With Quote

  #2 (permalink)  
Old Mar 14th, 2006, 18:17
New Member
Join Date: Jan 2006
Age: 27
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Form Positioning - Works in IE, not in FF

May be your problem are in width: 7em; or margin propieties in <label> elements.
if you can not see the problem so pot a background-color style in the <fieldset> or <label> elements for see the problem.
bye

Last edited by juanma; Mar 14th, 2006 at 18:22.
Reply With Quote
Reply

Tags
form, positioning, works

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ُSome PHP works marSoul Job Opportunities 0 Oct 8th, 2007 16:17
Works in IE but no other browser philiph Web Page Design 8 Jul 17th, 2007 20:33
CSS opacity works in FF but not IE? WebNinja Web Page Design 5 Feb 25th, 2007 22:14
Works in IE7 not in FF... daygo140 Web Page Design 4 Jan 22nd, 2007 11:49
bad coding... only works in IE Dapandyman Web Page Design 94 Dec 21st, 2006 10:40


All times are GMT. The time now is 21:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43