J E P P O
04-24-2003, 12:11 AM
hi,
i have just put iframes on my site and i wanted to put 2 iframes next to each other one on the left one on the right. i tried searching the forums and using div's but divs take the second frame to the next line...if you followed all that please help!
thanks
Sheila
04-24-2003, 09:24 AM
Have your tried putting them in a table (http://www.lissaexplains.com/table.shtml)?
MaGiCSuN
04-24-2003, 04:04 PM
did you used a seperate code for each iframe? because if you use the same code for the second iframe then you used for the first one offcourse it will go down, because you can't have two things on the same spot ;)
for example this>
<div style="position: absolute; left: 0px; top: 0px">IFRAME CODE HERE</div>
the code above will make the first iframe to go right into the left top corner. For exampe you will have two iframes that are 150pixels width.
Then you use this code for the second one:
<div style="position: absolute; left: 200px; top: 0px">SECOND IFRAME CODE HERE</div>
it will make a space between then from 50pixels, because the first one is 150 pixels width, and the second one will start on 200 pixels from the left, so that's a difference of 50 pixels
The codes above probably need to be changed but if you put them on your site it must be looking something like this:
<div style="position: absolute; left: 0px; top: 0px">IFRAME CODE HERE</div>
<div style="position: absolute; left: 200px; top: 0px">SECOND IFRAME CODE HERE</div>
Love,
Mirna