View Single Post
  #7 (permalink)  
Old May 26th, 2007, 12:17
Craigj1303 Craigj1303 is offline
SuperMember

SuperMember
Join Date: Apr 2007
Location: UK
Age: 31
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Aligning form in Firefox

I was able to get shot of the table and put the form in a DIV as suggested but I could only create a parent DIV for the form and the Paypal image. When I tried to put the Paypal image in a child DIV the <form> tag was split in 2 and wouldn't validate. Any thoughts on this?

I used the following CSS and now the form in centrally aligned in all browsers:

Code: Select all
#formcontainer {
 margin:0 auto;
 text-align:center;
 width:200px;
 margin-top: 10px;
 margin-bottom: 10px;
 }
I created a space between the form fields and the Paypal image by puting an extra <br/> tag between them.

Can anyone tell me though why IE insists on putting a space between elements? For example, in the link below IE displays a space between the pictures heading "Polperro, Harbour" and the image itself whereas other browsers do not.

http://uk.geocities.com/johnson463@b...STD1LGOPT.html

I have reduced the number of erros in validation to about 8 but I think I will make a seperate post on these in the HTML forum.

Last edited by Craigj1303; May 26th, 2007 at 12:28.
Reply With Quote