Jump to content

Recommended Posts

Hi,

 

My code is structured like this:

 


<div id="cssstyletype">
<form>
<tr><td>Title1</td></tr>
<tr><td><select1... options...></td></tr>
<tr><td>Submit1</td></tr>
</form>

<form>
<table>
<tr><td>Title2</td></tr>
<tr><td><select2... options...></td></tr>
<tr><td>Submit2</td></tr>
</table>
</form>

</div>

 

So, within one div id (which pulls in a background image), I have two forms, each with a select. I'm using tables within the forms.

 

The whole thing works fine, but in IE i get an extra 10 pixels space in between the selects, which looks silly. Does anyone know why this is? There are many other posts on a Google search, but no solutions that I've found yet...

 

Thanks...

Link to comment
https://forums.phpfreaks.com/topic/47898-ie-creates-gap-between-tables-forms/
Share on other sites

IE gives an extra portion of generous padding to many block elements. You'll need to use CSS to declare margin: 0 and padding: 0 for those items, and it should go away.

 

Also, at times IE renders white space that it should not, and you will find yourself needing to remove some extra line breaks or spaces.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.