Zohia Posted October 16, 2006 Share Posted October 16, 2006 Hi!I'm trying to put together a layout I made and am using php includes for the menu. The menu is in flash.I have a column for the logo and the menu (which, as I said, is inside an include) and it's as if the include has a top margin:http://www.os3porquinhos.com/racas.phpI put a border around the logo image and the flash menu so you could see the blue area on top of the menu.Any ideas on how to eliminate this blue area?Joana Quote Link to comment https://forums.phpfreaks.com/topic/24134-do-php-includes-have-a-top-margin/ Share on other sites More sharing options...
aebstract Posted October 17, 2006 Share Posted October 17, 2006 I dont see a space? O.o Quote Link to comment https://forums.phpfreaks.com/topic/24134-do-php-includes-have-a-top-margin/#findComment-109834 Share on other sites More sharing options...
Zohia Posted October 17, 2006 Author Share Posted October 17, 2006 Sorry! :-[I was now making experiments in a new page to avoid changing that one but as I was using the same menu I accidentally removed it's border.You can see it now and check the space.Joana Quote Link to comment https://forums.phpfreaks.com/topic/24134-do-php-includes-have-a-top-margin/#findComment-109893 Share on other sites More sharing options...
AndyB Posted October 17, 2006 Share Posted October 17, 2006 You need to revise your code. The generated html for the page has two body openers, two heads, two doctypes and has code after the body closing tag, any or all of which will ruin the output.It looks as though you have an include that has head and body tag openers and closers in it. Think of "include" as being like copy/paste and obviously only needing to the content you want, not a complete stand-alone html file. Quote Link to comment https://forums.phpfreaks.com/topic/24134-do-php-includes-have-a-top-margin/#findComment-109969 Share on other sites More sharing options...
Ninjakreborn Posted October 17, 2006 Share Posted October 17, 2006 Yes, the idea behind include is.If you have an include like<?phpinclude './includes/general.inc.php';?>Inside it says.<h3>Hello</h3><p>Hello how are you today.</p>Then you include that into a page like this<html><head><title>Hi</title></head><body><?phpinclude './includes/general.inc.php';?></body></html>If you go to the browser, and look at hte source you see[code]<html><head><title>Hi</title></head><body><h3>Hello</h3><p>Hello how are you today.</p></body></html>[/code]See it simply cut's it into the text.Include is the same thing for every language roughly.It is just a way to insert text from another page.That is the general idea. Quote Link to comment https://forums.phpfreaks.com/topic/24134-do-php-includes-have-a-top-margin/#findComment-110184 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.