PHPGeek80 Posted November 26, 2007 Share Posted November 26, 2007 Hi, I’m generating an html page using php. The html page displays the logo image with extra space below when using Internet Explorer, in other browsers the extra space below doesnt exist. I cannot work out for the life of my why Internet Explorer is adding this extra space. Does anyone have any input on this? http://www.maxielive.com/cart/index.php Any help to rectify this would be greatly appreciated. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/ Share on other sites More sharing options...
drranch Posted November 26, 2007 Share Posted November 26, 2007 which other browsers does it work fine with? It isn't related to PHP, but in your css you mignt want to add... padding: 0px; Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399220 Share on other sites More sharing options...
PHPGeek80 Posted November 26, 2007 Author Share Posted November 26, 2007 I have tested this site in: Firefox, Safari, Netscape and Opera. They all display the page fine with no extra space below the logo image. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399223 Share on other sites More sharing options...
rajivgonsalves Posted November 26, 2007 Share Posted November 26, 2007 I think its because you specified height:100% in the style sheet for your body and html tag try removing that and see if it works Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399226 Share on other sites More sharing options...
rlindauer Posted November 26, 2007 Share Posted November 26, 2007 I believe it has something to do with how ie treats images. Try adding "display:block;" to the css for the image. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399228 Share on other sites More sharing options...
PHPGeek80 Posted November 26, 2007 Author Share Posted November 26, 2007 Thanks for your feedback but, none of the advice given has worked. Anything else that could cause this? Please note: When i remove the doctype tag from the html, the page is displayed correctly. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399423 Share on other sites More sharing options...
adam291086 Posted November 26, 2007 Share Posted November 26, 2007 I have had the same problem before. It was a problem with the table properties. Have you tried setting the cell background to be the logo image? That may indicated any sizing issues with the table. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399424 Share on other sites More sharing options...
PHPGeek80 Posted November 26, 2007 Author Share Posted November 26, 2007 nope, sorry didnt work. I basically want the top portion to have a height of 70 pixels. Is this possible? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399445 Share on other sites More sharing options...
adam291086 Posted November 26, 2007 Share Posted November 26, 2007 No it shouldn't be. Something is conflicting some where. What is the height of the image? That may be causing it Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399452 Share on other sites More sharing options...
PHPGeek80 Posted November 26, 2007 Author Share Posted November 26, 2007 the image height is 70px, its so strange. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399458 Share on other sites More sharing options...
adam291086 Posted November 26, 2007 Share Posted November 26, 2007 just looking at the source code through your link <td valign="top" style="background-image: url(images/logo.png); height: 70px;"> change to <td height="70" valign="top"><img src ="images/logo.png" alt="" /></td> Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399468 Share on other sites More sharing options...
PHPGeek80 Posted November 26, 2007 Author Share Posted November 26, 2007 Done but no change. I cannot understand why this is. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399481 Share on other sites More sharing options...
adam291086 Posted November 26, 2007 Share Posted November 26, 2007 This is the wrong forum as well. Try putting a new table with one row and colum in the area for the logo. The add in the image into there and end the table. Therefore you have a page table and then a logo table, content table ect ect ect. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399486 Share on other sites More sharing options...
PHPGeek80 Posted November 26, 2007 Author Share Posted November 26, 2007 I have tried that but it doesnt work, thanks for all your help. its must not be possible. Quote Link to comment https://forums.phpfreaks.com/topic/78876-page-displays-fine-in-any-browser-except-ie-any-idea-why/#findComment-399490 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.