PDA

View Full Version : IFRAME!! Images not alligned!!



netnexus
April 5th, 2003, 02:16
Hey, my old site, conspiracy theory was hacked and put offline so now I am making v2 in html.

I have uploaded my test tempaltes but i cannot get the imaegs to allign in the main iframe.

at

http://netnexus.hostultra.com/test/index2.html

in the main body the images are not alligned.

here is what they SHOULD look like

http://netnexus.hostultra.com/test/main.htm

and the iframe is calling MAIN.HTM so it cannot be a problem with main.htm It must be a problem with the Iframe.

Any suggestions greatly appreciated!

Thanks

bloodyveins
April 5th, 2003, 09:38
Your code is...
------------------------------------------------
<Body BGcolor="#bcbec0">

<CENTER>
<Table Border="0" CellSpacing="0" CellPadding="0" >
------------------------------------------------

How about changing its syntax to
<body>
<table border=0 cellspacing=0 cellpadding=0 align=center>
It would make your page centered.

This one is available too...
<body>
<table border=0 cellspacing=0 cellpadding=0 style="margin-left: 0">
It would make your page left aligned.

Iframe won't affect your page alignment as it only loads another page's contents

netnexus
April 5th, 2003, 09:59
ok.. i think you're not getting me

the images on index2.htm are ALL fine. its just when the iframe calls MAIN.htm the images from MAIN.htm are unalligned

however

when you go DIRECTLY to MAIN.HTM, the images are alligned.

bloodyveins
April 5th, 2003, 10:15
Your code is....
--------------------------------------------
<Tr>
<Td Width="139" Height="360"></Td>
<Td Width="373" Height="360"><iframe frameborder=0 name="main" width="373" height="360" src="main.htm">
</iframe></Td>
--------------------------------------------

Try to change it into:
<tr>
<td width=139 height=360></td>
<td>
<table width=373>
<tr><td width=373 height=360>
<iframe frameborder=0 name="main" width=373 height=360 src="main.htm">
</iframe></td>

That syntax would make main.htm scrolled (there would be scroll bar at iframe> if its size is larger than 373. Without making iframe in tabels, your browser wouldn't be able to adjust to iframe width, consequently, your images (the borders) would be unaligned.

netnexus
April 5th, 2003, 10:32
that didn't work.. thx anyways

if its useful, the table in main.htm is only 360 pixels where as teh iframe is 373.. so it is smaller and should fit in

netnexus
April 5th, 2003, 10:34
nvm guys.. found it. i didn't specify the width in the main.htm file

silly me..

sorry bout this

thx for the help bloodyvein :)