View Full Version : Frame Issues...


Redkaven
03-17-2003, 05:57 PM
Something wrong with this code? It's not working.

I know it may seem strange to rig it that way, but I'm trying to come up with a way to make it adjust to different screen sizes.

--------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>

<title>XXX HOME</title>

</head>

<FRAME ROWS="100%" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0">
<FRAME SRC="xxxtop.html">
<FRAME COLS="100,50,100%,50,100" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0">
<FRAME SRC="xxxnavigation.html">
<FRAME SRC="xxxbar1.html">
<FRAME SRC="xxxcontents.html">
<FRAME SRC="xxxbar2.html">
<FRAME SRC="xxxright.html">


</html>

-------------------------------------

Thanks in advance,

-Redkaven

Redkaven
03-17-2003, 06:06 PM
I know, I forgot my <FRAME> </FRAME> tags right?

I added them in though, still nothing.

-Redkaven

pb&j
03-17-2003, 06:35 PM
Change this...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
To this...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

Next, fix your ROWS value. You have it set for only one row. It looks like you would want at least 2 rows. One for your top area, the other to hold your columns.

Next, your middle column cannot be 100%. If you want it to cover the balance of the remaining area, you can insert a star *.

There are no ending FRAME tags unless you are working with XHTML specs. Even then, the ending goes within the opening tag. But that's another story.

You are missing your ending FRAMESET tags though. Actually, you are missing the FRAMESET tags all together!

You are also missing the NAME properties. The names will become useful for when you are linking.

You are also missing one quote off a couple values.

Give this a go to start off...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>XXX HOME</title>
</head>
<FRAMEset ROWS="100,*" BORDER="0" FRAMEBORDER="0" FRAMESPACING="0">
<FRAME SRC="xxxtop.html" name="top">
<FRAMEset COLS="100,50,*,50,100" BORDER="0" FRAMEBORDER="0" FRAMESPACING="0">
<FRAME SRC="xxxnavigation.html" name="nav">
<FRAME SRC="xxxbar1.html" name="bar1">
<FRAME SRC="xxxcontents.html" name="contents">
<FRAME SRC="xxxbar2.html" name="bar2">
<FRAME SRC="xxxright.html" name="right">
</frameset>
</frameset>
</html>