View Full Version : positioning i frames


Tinkerbell
07-15-2003, 06:24 AM
i need help on positioning iframes

i want it like this

iframe iframe



iframe iframe

also how do i position my bg image?
it just comes out tiled
i want it centered

Geekette
07-15-2003, 06:43 AM
Could you be a bit more specific on what you want to do with the iframes? As for centering your background, look here to find out how: http://www.lissaexplains.com/css.shtml#stylebody

briankircho
07-15-2003, 06:47 AM
Hi,
for your iframes, they could be positioned in a number of ways. You could just put them in a table like anything else for example:

<table>
<tr>
<td><iframe src=""></iframe></td>
<td><iframe src=""></iframe></td>
</tr>
<tr>
<td><iframe src=""></iframe></td>
<td><iframe src=""></iframe></td>
</tr>
</table>

I dont know what exactly your going at, you could also use absolute positioning.

For the centered background image, you might use something like the following in your CSS stylesheet:

<style type="text/css">
body
{
background-image:
url("/images/smiley.gif");
background-repeat:
no-repeat;
background-position:
center center
}
</style>