View Full Version : why isnt it working when i put two i frames on the same page?


sugarbyte
05-15-2004, 02:18 AM
here is my code... can you tell me why when i put two iframes, the second one is aligned to the other one, but its placed under it...

here is my code for my iframes

<div id=layer2 style="position:absolute; top:22px; left:341px;">
<IFRAME name="frame" src="home.html" width=401 height=584 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=auto style="FILTER: chroma(color=#FFFFCC)" allowtransparency="true"></FRAME>
</div>
<div id=layer2 style="position:absolute; top:22px; left:0px;">
<IFRAME name="menu" src="home.html" width=168 height=584 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=auto style="FILTER: chroma(color=#FFFFCC)" allowtransparency="true"></FRAME>
</div>

i put it in my head section... why isnt it working?
i would like the two iframes to be paralel to each other, but they are placed one under the other like a column...
help :(

Monkey Bizzle
05-15-2004, 02:26 AM
i don't know anything about iframes but what is your resolution? i have 1024 and it looked fine on my screen...

sugarbyte
05-15-2004, 02:32 AM
the iframes do show up, yes that works, but i want them to be side by side, not ontop of each other...

pb&j
05-15-2004, 02:34 AM
the ID value should be different for each DIV.
could you post a link to the page in question so we can see the problem in action?
thanks.

Monkey Bizzle
05-15-2004, 02:34 AM
that's what i mean, on my screen, i copy and pasted your link into a new HTML document and looked at it and they were side by side... so, i thought it was your resolution or something... i don't know what to tell you cause i suck at iframes... but i know someone else will probably tell you to post a link so that it will be easier to diagnose the problem...

sugarbyte
05-15-2004, 02:38 AM
do i post it in my head? or is there a specific order i should put the div layer i frames? or what should i do?

edit:

thnx monkey bizzle ^^

sugarbyte
05-15-2004, 02:40 AM
thnx monkey bizzle ^^

pb&j
05-15-2004, 02:41 AM
id=layer2
^^ that value... layer2 can only be used on one div. the other div should have a different value.
since you are using absolute positioning, it should not matter what order you code them in.
as asked before, please post a link to your problem page and try to explain again the exact problem happening.
thanks.

sugarbyte
05-15-2004, 02:48 AM
http://hl2maps.ansiibomber.ch/sugarbyte/sugarbytefinal.html

...now instead of being ontop of each other, they are beside each other, but they dont want to seperate (they are like siamese twins!)

help, this is sooo confusing, i dont know how to fix it.
I want one to be positioned on a part of the layout, then the other i frame to be positioned at the other side of the layout..
help :(