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?? Quote Link to comment Share on other sites More sharing options...
trecool999 Posted July 8, 2007 Share Posted July 8, 2007 Huh? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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] Quote Link to comment 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. Quote Link to comment 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! Quote Link to comment 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.