Legal Real estate Insurance Website Hosting Travel Agents Internet & Phone Casino Sports Book Templates Expat Food Items Domain Names
Submit Engine Send e-Cards Shopping Mall Travel Guide Missing Persons Free Web Based E-mail Search The Web Webmaster Tools Dating Service Blog read now Play Flash Games
Free E-books Free Legal Forms Reference Programs Scripts Affilliate Videos Free Adsense Templates Erotic phone Java games
Send SMS to USA FAQ's & Advice Expat Profile Consumer Protection Testimonials Pattaya's WeatherThai Food Recipes Free Articles Free Magazines
Pattaya City Thailand, legal, real-estate and discount international telephone services

Webmaster Tips, Tricks & Utilities    JavaScripts & CSS Styling

      Div instead of Iframes

Iframes give you the ability to serve a lot of information in a small section of your website. Instead of having your whole webpage scroll, you can allow your visitors to scroll through a specified section of your website.

Unfortunately, Iframes aren't too user-friendly, especially for screen readers. Often times, Iframes can be replaced with a simple div.

The pink div below has "overflow: auto;", which means that if the content inside of the div goes beyond the set width or height, the box will then be scrollable. The code for the pink box is inside:

<div style="border: 1px solid #aaa;background-color:#f9efef; height:65px; overflow:auto; color:#135;">

<p>Your own content can go inside here.</p>

</div>

In the above example, we didn't set the width of the box, but you can do this by adding width: 100px; directly after style=", as shown:

style="width: 100px; border: 1px solid #aaa...

Instead of showing a separate page inside of the div, you can put your content directly inside of the div. Unfortunately, without the use of a server-side programming language, you cannot load a separate page inside of a div.

You can change around the border and background-colour by changing the hex code proceeding the hash '#' sign.

 

Pattaya City Thailand, legal, real-estate and discount international telephone services



Google