Tutorials & Script Homepage
HTML/DHTML 1to7
HTML - Lists
Using iFrames
Background Colours
Basic Tables
Advanced Tables
Tables Tricks 'n' Tips
Tip Boxes
advertisment
advertisement
advertisement
Host With Us: HostingHelper.co.uk From Only $5.00p/m
Spotted an Error ? Let us Know
100's more FREE templates at FreeWebTemplates
Looking for a new Web Host ?
Free templates from TemplatesLand
Professional High-End Templates
TemplateBox.com more FREE templates
Free Flash Templates and Intros
advertisement
 
HTML/DHTML TUTORIAL NUMBER : 02
Please Click Here, and Help Keep This Site FREE to Use
 
Please click on our sponsors advert to the right if you download or use anything from this page.
Thank you for your help.
This tutorial has been created by: infinite-fire.net

HTML - Lists

HTML Tutorial - Inline Frames
The Iframe, or inline-frame, is a lot like a normal frame, except that it can be displayed anywhere, which makes it a useful (although irritating if overused) thing to know, it is also a very simple tag to use, with only 3 required properties.

How it works
Well, first of all you open the <iframe> tag, then you define which page you want to appear in the iframe, and how wide, and how tall you wish the iframe to be - the vast majority of people also set the frameborder attribute to 0 - so that it looks a lot better, here it is in action:


Now as you can see, I included a file, which shows the code for the iframe - note I set the frameborder to 1, so that it is clear where it is, here is the same iframe, except with the frameborder set to zero:


Now as you can see, this is a pretty nice way to include content from external files (similar to a PHP include) but what if you have a lot of content in your external file? well this is where iframes really come into their own - as long as you don't disable them (by setting scrolling="no") then iframes automatically add a scrollbar when the content overflows - so the iframe will stay the same size as you have set it to (in my case 550*30) - here it is in action:



All Together

Pretty nice eh - here's the code to make an iframe:
< iframe src=" iframe_example.htm " width=" 600 " height=" 30 " frameborder=" 1 "></ iframe >

Now the default value for scrolling is auto, which will scroll if the content doesn't fit, if you definitely DO want scrollbars, set this to yes - if not, set it to no - and I would always recommend using frameborder="0", just because the frame borders are so ugly! Simply replace my iframe_example.htm with the file name of the page you want to include, the set the width and height accordingly, and you're ready to go!

Conclusion
You can now use iframes in your web design, and change the scrollbars, borders, width and height.

I hope this came in useful!
Ask in the forum if you have any suggestions or comments.

Web Hosting  |  Membership website templates  |  Reliable UK Web Hosting  |  dresses  |  Art Web Templates  |  Cheap Flight Deals  |  UK Web Hosting Company  |  Coursework Writing  |  Reseller Hosting  |  coches de ocasion  |  Cheap UK Web Hosting  |   cell phones  |  Web Design  |  Low Cost Domain Names  |  Website templates  |  master a distancia  |  Austin Web Design  |  Flash Templates  |  Factory  |   cell phones  |  Canadian Web Hosting  |  Flash Intros  |  Web Templates  |  cartuchos  |  Corporate Logo Design Service  |  Website Templates  |  Bespoke Software Development  |  Domain Name Registration  |  Free Website Templates  |   Dedicated Server  |  UK Web Hosting  |  Dating Software - aeDating 4.1  |  Website Templates  |  Power Saver  |  taobao agent  |  Flash templates  |  Lolita Dresse  |  china wholesale  |  Canadian Web Hosting  |   Cheap Web Hosting Deal  |  Linux Hosting  |  Web Design uk  |  Web Hosting  |  Business web directory  |  Electronics  |  Free domain names  |  Best UK web Hosting  |  Shower Enclosures UK  |  

 
advertisment
advertisment
advertisment
  Top-end templates
  Flash Templates
  Web Hosting UK
  Made-in-China.com
  Web Design Tips
  Web Hosting Reviews
  Web hosting reviews
  Website Design
  Cheapest web hosting
  Stock Photography
  Bildagentur
  Reseller Hosting
  Company Logos
  Website Templates
  Website Templates
  Web Hosting UK
  templatebox.com
  freewebtemplates.com
  templatesland.com
  topfreegraphics.com
  freegraphicland.com
  free-templates-layouts
  Logo Design Software
  Layouts4Free
  Webmaster Resoucres
  Web Templates Factory
  Free Web Templates
  Free Templates Catalog
  Web Templates
  Reseller Web Hosting
  Stock Photography
  Animations-galore.com
  4print.com.au
  Host Review
  Web Hosting Host Color
  Dedicated Servers
  FlashTemplateDesign
  ZeroDollarTemplates
  Killersites.com
  how-to-build-websites
  Build a free website
  web Hosting
  Business Logo Design
  Templates Favpage
  webmastermind.de
  flasheasy.com
  More Featured Sites