Can someone please help :)

This is a discussion on "Can someone please help :)" within the Web Page Design section. This forum, and the thread "Can someone please help :) are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 11th, 2006, 05:21
New Member
Join Date: Sep 2006
Location: california
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Can someone please help :)

Hi everyone!
As soon as I close a form tag I’m working on by typing: </form>, a gap suddenly appears underneath the table that the <form> code is in. This is only happening in Internet Explorer, but it’s screwing up my whole layout of my website. Why is this happening? How do I get rid of that stupid gap? It works perfect in Firefox, but in IE it acts retarded! Any advice would be extremely great because I’m stumped!

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 11th, 2006, 06:07
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can someone please help :)

Try adding the following to your CSS:

Code: Select all
form {
    margin: 0;
    padding: 0;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 11th, 2006, 07:31
Up'n'Coming Member
Join Date: Aug 2006
Location: Australia
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can someone please help :)

how can you know that will fix it without the link to the page or any of the code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 11th, 2006, 10:01
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can someone please help :)

I'm fluent in CSS. Unless there is some unlikely IE bug I'm unaware of, those two properties will take care of any default formatting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 11th, 2006, 11:24
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Can someone please help :)

IE adds margin to forms by default....
for future reference, always start your styles sheets with:
*{ margin:0px; padding:0px; }

that will clear browser's default margin/padding settings so you only get your own...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 11th, 2006, 20:22
New Member
Join Date: Sep 2006
Location: california
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can someone please help :)

It’s awesome! I used the code that you said to use and every thing works perfect! Thank you so much for your help! I only post questions when it’s really important and I really need an answer. I was in a big time crunch and you really helped me a lot. Thank you very, very much!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 12th, 2006, 03:38
Reputable Member
Join Date: Jul 2005
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can someone please help :)

Quote:
Originally Posted by spinal007 View Post
IE adds margin to forms by default....
for future reference, always start your styles sheets with:
*{ margin:0px; padding:0px; }

that will clear browser's default margin/padding settings so you only get your own...
Yeah, it clears the margins and padding for EVERYTHING!! so it can actually be quite annoying and add a lot of bloated code by having to redefine a lot of margins and paddings that would otherwise be standard.

Just wanted to give a heads up to anyone that may not be aware of the after effects of using that idea.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 12th, 2006, 09:16
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Can someone please help :)

good point to make...

I prefer to know exactly how much padding/margin everything has.
As for the bloated code, it can't take more than 5 lines or so to define exactly how much padding/margin you want for your tags.

at the end of the day, we all have different coding styles and it comes down to preference...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 12th, 2006, 13:03
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Can someone please help :)

I love you guys.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
someone, help

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


All times are GMT. The time now is 18:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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