An Alternative to iFrames
div.box {
margin: 0 auto; padding: 15px;
background: #ccc url('http://') repeat;
width: 500px;
height: 400px;
overflow: scroll;
}
IFrames do more harm than good. For several reasons it is not recommended to use them. However, if you still want to add a "box" to your website, you can fake an iFrame using a div instead. Just add a width and height to your box and set it to scroll, which will prevent it from stretching out vertically (and horizontally).
Category: CSS
Rating:
Added: 23rd November 07 by Karen
Bookmark At: StumbleUpon, Digg

Handy Stuff
Downloads
Top Links
Resources