Forum Moderators: phranque

Message Too Old, No Replies

iframes

total rookie

         

blairsp

12:55 pm on Sep 25, 2004 (gmt 0)

10+ Year Member



Hi

Hope someone can help. I am trying to use Iframes for my ads (468x60 banners)

When I place the iframe on the page, it shows where I want it to, but the contents of the IFRAME aren't aligned to left and top. They are sort of shifted, right and down and therfore not showing completely.

I am using <iframe src="http://www.wxyz.uk/adverttop1.php" width=468 height=60 scrolling=no></iframe>

advertop1 is where the php code si placed with NOTHING else in that php page.

Where am I going wrong? TIA

encyclo

1:29 pm on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you use an iframe, you are including a complete HTML page into your main page, much like standard frames. So, if you say that the adverttop1.php has only the ad markup in there, that's not enough.

You need to add the usual doctype, <html>, <head>, <body> etc. into the page, and you set the margins either with CSS or in the HTML directly within the included adverttop1.php page.