Jump to content

IE creates gap between tables / forms


marmite

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.