Help - Search - Members - Calendar
Full Version: iFrames
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
rawoarbby
I really don't understand iframes; but it would be so much easier to actually change the layout than going to EVERY single page and changing the layout there;
anyone willing to help?

i understand about the code
<iframe frameborder="0" width="500" height="5000" src="http://yousite .com/index.html" name="Content" allowTransparency="true" scrolling="no" align="top" style="position:absolute; top:450px; left:206px"></iframe>

but i don't really underztand the rest;
am i suppose to put the iframe code in every single page that i want the same layout in?
and
am i suppose to have a separate iframe code for the sidebar and the updates?
please help
karmakiller
If you have multiple pages and you don't want to update them all when you change your layout, I'd suggest using PHP Includes. You can use DIVs instead of iFrames. They're pretty easy to use, I prefer them over iFrames.

You can still use iFrames. Your content pages can use CSS. Just fill out a stylesheet and upload it and then you can link it. You don't change the layouts on that page. So basically, you have one main page that you update and put the iFrames on and you change the height and width of the iFrames when you update your layout. You can put as many iFrames on your page as you'd like.
Chicago
i agree with karmakiller, DIVS are mucho' easier
moorepocket
iframes are intend to put information w/o all the codes. It's simplier if you have it on every page. It's less coding. Like radio.blog.

width="500"
height="5000"
src="http://yousite .com/index.html" (the page in which you want to show)
name="Content" (for link navigations)
allowTransparency="true" (transparent background)
scrolling="no" (scrollbar)
align="top"
style="position:absolute; top:450px; left:206px
(you don't really need the last two)

But if you want an iframe layout like this. Then all you need is the pages and put it in a frame.

(that was so hard to explain. Hope i make sense.)
tripvertigo
you should just give up.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.