View Full Version : Frames aren't working for my site-am I not using them correctly?


Radiant_Stacie_Fan
10-25-2006, 01:05 AM
OK, I'm making my first real layout ever. I now have to code my layout. I'm having some issues though. The frame won't go directly on TOP of the part where it is supposed to go-which is in the box that says "content" on it. I tried putting my graphic as a background image but it's not showing up.

So my question is...how can I get my content where it says "content" at? I was told to use DIV Elements...but those don't hold pages like frames-so I was really confused on those. :confused:

Anyway, here's the link to my site that shows my problem: http://www.freewebs.com/kits_vintage/index2.htm

By the way, the part where it says "page cannot be found" is alright. I haven't created my 3rd index page yet so thats why it says that. :)

pb&j
10-25-2006, 04:26 PM
you will need to use css to position things into place. for both your image and your iframe.

you will need to discard using CENTER for the image. centering will look different in different screen resolutions, so that will make a positioned object look off if you mix centering and css positioning together.

check out the css section about positioning things into place.

Radiant_Stacie_Fan
10-25-2006, 10:03 PM
Ok, I've looked at CSS and see how to postion my image but I don't understand how I can get the frame on top of the image now. I'm not sure how to combine both of them together-so that the frame will go directly on top of the image. :confused:

pb&j
10-25-2006, 10:12 PM
try this as your page coding and change the values as necessary...

<html><head><title> my title </title></head><body>

<img style="z-index:1; position:absolute; top:20px; left:100px; height:500px" src="http://img64.imageshack.us/img64/6290/kitssflayoutvm6.png">

<IFRAME name="inlineframe" style="z-index:2; position:absolute; top:100px; left:150px; height:400px; width:400px;" src="index3" frameborder="0"></IFRAME>

</body></html>

Radiant_Stacie_Fan
10-25-2006, 10:23 PM
Oh ok, I see how it goes now. Thank you so much!! :blush:

pb&j
10-25-2006, 10:27 PM
no worries. hope it goes well for ya.