marmite Posted April 20, 2007 Share Posted April 20, 2007 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... Quote Link to comment https://forums.phpfreaks.com/topic/47898-ie-creates-gap-between-tables-forms/ Share on other sites More sharing options...
obsidian Posted April 20, 2007 Share Posted April 20, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/47898-ie-creates-gap-between-tables-forms/#findComment-234140 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.