gavcity Posted July 8, 2007 Share Posted July 8, 2007 Hi, bit of a stupid question I'm sure but I am including a menu via php in a html file and it is causing a gap in IE that isn't there if I just do it as a straight html file. Looking at the generated code in IE7 the only difference is a little - at the start top of the include presumably added by the server when it starts to include the external file. This does not appear when I view the source in Firefox and naturally there are no problems with the rendering in that browser. The page is here. You will notice the 'included' bits which start at 'Here are some other ' in the left column and with the info image in the right column are dropped somewhat in IE7, not sure about 6 etc. Any ideas?? Link to comment https://forums.phpfreaks.com/topic/58960-solved-include-in-html-file-causes-gap-in-ie7/ Share on other sites More sharing options...
trecool999 Posted July 8, 2007 Share Posted July 8, 2007 Huh? Link to comment https://forums.phpfreaks.com/topic/58960-solved-include-in-html-file-causes-gap-in-ie7/#findComment-292563 Share on other sites More sharing options...
OLG Posted July 8, 2007 Share Posted July 8, 2007 Lol? No large gaps for me in Internet Explorer 7 Link to comment https://forums.phpfreaks.com/topic/58960-solved-include-in-html-file-causes-gap-in-ie7/#findComment-292565 Share on other sites More sharing options...
gavcity Posted July 8, 2007 Author Share Posted July 8, 2007 http://news.citymancs.com/index.html That is the url dunno what happened with that link. Link to comment https://forums.phpfreaks.com/topic/58960-solved-include-in-html-file-causes-gap-in-ie7/#findComment-292570 Share on other sites More sharing options...
gavcity Posted July 8, 2007 Author Share Posted July 8, 2007 Attached is a picture of the dash that appears at the start of the include when viewing the source in IE. This does not appear when viewing the source in Firefox. As far as I'm concerned it can only be this that is causing the extra line gap before the stuff I want included and it isn't in the original code. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/58960-solved-include-in-html-file-causes-gap-in-ie7/#findComment-292586 Share on other sites More sharing options...
AndyB Posted July 8, 2007 Share Posted July 8, 2007 That's pretty freaky, getting different source code in the different browsers. Check your include for some oddball control character or some windoze "smart" quotes. Link to comment https://forums.phpfreaks.com/topic/58960-solved-include-in-html-file-causes-gap-in-ie7/#findComment-292598 Share on other sites More sharing options...
gavcity Posted July 8, 2007 Author Share Posted July 8, 2007 Cheers for that mate the text editor was saving files as UTF-8 with BOM. If I save them without BOM the problem disappears. I suppose that's my lesson for the day eh! Link to comment https://forums.phpfreaks.com/topic/58960-solved-include-in-html-file-causes-gap-in-ie7/#findComment-292639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.