Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#include virtual

Status
Not open for further replies.

sciclunam

Programmer
Oct 12, 2002
138
MT
Hi guys,

I use the #include virtual command to insert an htm file in another htm file. Ie: I have a website where the top banner is being included by using the #include virtual command.

However this is leaving me with a blank space between this top banner and the rest of the other page.

Maybe you will understand better by visiting
As you can see there I have a blank space under 'contact us'
The top banner being included has no spaces beneath when opening it alone.

Does anyone know why this is happening?

Thanking you in advance.
Best regards,

Mario
 
First of all, you need to clean up your html code a bit. I guess that will help quite considerably. Lets look at the most common mistakes:

- You are opening and closing <html> tags throughout the document. It should have just two <html> tags, opening, on top under the doctype declaration and closing at the end.
- If you are including a page, make sure that page does not have <html> tags but rather starts out from nowhere. Because include simply means everything from that file will be dumped at the place you are including in this file.
- Where you are having problems, you are closing a </p> paragraph tag I never saw opened. At this point you are also closing your body and html tags. That you should get rid of as well.

Hope it will help.
 
Thanks for your help. I cleaned up my file and changed the <p> with <div> around the includevirtual part and it`s ok now.

However I left the blank line online on purpose as have to find a plance where to put the Contact us Link!

Thanks

Best regards,

Mario
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top