View Full Version : iframes help


Amees
06-18-2003, 06:09 AM
First of all, here's the site I'm working with:
http://www.seven-stories.net/~asleep/gfishie1.htm

Everything is fine and dandy there. But what I want to do is have the entire layout centered on the page, instead of having it positioned to the left like it is now.

I have no idea how to do this.

I know how to center the layout images (duh) but how do I make my multiple iframes stay where they're supposed to when someone resizes the window or something?

MaGiCSuN
06-18-2003, 01:05 PM
you can't :S becuase you have positioned your stuff it's always on the same place in any resolution

maybe frames will work, like this:

<HTML><HEAD><TITLE>title</TITLE></HEAD>

<FRAMESET COLS="20%, 60%, 20%">
<FRAME SRC="bg.html" NAME="left">
<FRAMESET ROWS="20%,60%,20%">
<FRAME SRC="bg.html" NAME="up">
<FRAME SRC="middle.html" NAME="middle">
<FRAME SRC="bg.html" NAME="bottom">
</FRAMESET>
<FRAME SRC="bg.html" NAME="right">
</FRAMESET>

<NOFRAMES>
Sorry, but your browser does not support frames.
</NOFRAMES>

</HTML>

what the thing is with this is that you only have to make one page for the four frames that are surrounding the middle.html one becuase that's the grey background. So just make a page called bg.html with only the background color on it and upload it

now make a middle.html and put your WHOLE layout on it, or just rename the middle.html to your layout.html or whatever file. make sure this isn't index.html because probably the frameset is index.html :)

Hope you understand it, this is what i did with one of my layouts too becuase i wanted it to be centered too :) Just play with the % a bit, it always has to be 100% together (so row together, and cols together, not both together)

Love,
mirna