View Full Version : span tag and iframe positioning


Lakini's Juice
05-23-2003, 09:24 PM
&ltspan style="position: absolute; left: 50; top: 50"&gt&ltiframe src="main.html" name="inlineframe" width="651" height="478" frameborder="0" border="0"&gt&lt/iframe&gt&lt/span&gt


How do I center it rather then positioning it 50 px from left and 50px from top?

MaGiCSuN
05-24-2003, 12:22 PM
<span style="position: absolute; left: 50; top: 50"><iframe src="main.html" name="inlineframe" width="651" height="478" frameborder="0" border="0"></iframe></span>


try this instead:

<div align="center"><iframe src="main.html" name="inlineframe" width="651" height="478" frameborder="0" border="0"></iframe></div>

i hope that is what you are looking for

Love,
mirna

Lakini's Juice
05-27-2003, 12:59 PM
Doesn't that only center it from right to left? Or does that do top to bottom too? I want it centered right in the middle

soundasleep
05-28-2003, 06:30 PM
this is also kind of what i want. by using the above text, i can make it relatively centered, right? and then how can i make the iframe lowered from the top but not exactly centered in the middle again? and what else can positioning do if it's not absolute? what does absolute mean?

Lakini's Juice
05-28-2003, 08:51 PM
Originally posted by soundasleep
this is also kind of what i want. by using the above text, i can make it relatively centered, right? and then how can i make the iframe lowered from the top but not exactly centered in the middle again? and what else can positioning do if it's not absolute? what does absolute mean?

Can't figure out how to center it but with the above code you can lower it from the top and not exactly centered. I don't know how to center it. Just play around with the pixels...

starlet
05-29-2003, 01:59 AM
you could put it in a table and use valign=middle and align=center?

soundasleep
05-29-2003, 04:12 PM
if you put it in a table, do u have to make multiple rows and then merge them all together? or how else would u you it?
my iframe is width="600" height="280".