View Full Version : How do ICenter An IFrame?
habboleaders
07-13-2007, 12:43 AM
How do I put an Iframe in the center of the page so I can put stuff arround it?
Tyler
07-13-2007, 06:37 AM
You could use a table. Make a table with a column on each side make each side like 25% and the center 50% or something.
cr0wonline
07-15-2007, 06:35 PM
I think a better way would be get the width and height of the visible browser screen, then make a div with an absolute position that is half of the height/width, then subtract the width & height of the iframe. :)
habboleaders
07-19-2007, 12:59 PM
. . .
How do I do that?
beboskins
07-20-2007, 12:00 AM
Don't use iframes. Use <div>'s instead. They are easier to use and comply with W3 Standards!:)
kewlchat
07-20-2007, 02:07 AM
Just so you know search engines hate iframes. You could try something like..
<!-- css -->
.scrollable {width:200px; height:500px; border:1px solid black; overflow:auto; }
<div class="scrollable">
<?include('whatyouwant.php'); ?>
</div>
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.