Click to See Complete Forum and Search --> : frames
ptherin
12-30-2002, 05:26 PM
i made some frames on my website, and i used the % of page to size them, the problem i'm seeing is that when i have a different pixel setting on my monitor my control bar is getting cut off.
how do i code the frames with exact pixels for the first column, but general size for the rest, so that the last column, which is empty space will be the only thing that changes depending on the monitor setting?
thanks
jeffmott
12-30-2002, 05:33 PM
Use a * to divide up the ramaining space.
cols="200,*"
ptherin
12-30-2002, 05:34 PM
and the 200 is pixels?
Beach Bum
12-30-2002, 05:41 PM
yes the 200 is px.
you should also specify noresize if you want to keep the frame at 200px.
ptherin
12-30-2002, 05:42 PM
how do i do that?
and if im telling it 200 px why would it resize?
Here is an example...
<frame name="test" src="test.htm" noresize="noresize"></frame>
You would use it if you don't want your users to resize the frame on you.
ptherin
12-30-2002, 05:57 PM
oh great, i was gonna write a post for that before. my site works in explorer but not netscape, netscape just shos the left frame and opens the link in a new window, any idea why?
http://www.querinrecords.com/querin.html
this is the address, its still very much under construction.
Stefan
12-30-2002, 06:39 PM
Originally posted by ptherin
my site works in explorer but not netscape, netscape just shos the left frame and opens the link in a new window, any idea why?
Becuse your code is broken. Eg you got your <noframes> section outside your <frameset> and are missing important things like doctype and charencoding.
It should look something like this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
</head>
<frameset cols="100, 1*" border="0"> <!-- border="0" is a bugfix for IE, NS as well as Opera -->
<frame name="nav" src="nav.html" frameborder="0" marginwidth="1" marginheight="1" scrolling="auto">
<frame name="main" src="home.html" frameborder="0" marginwidth="1" marginheight="1" scrolling="auto">
<noframes>
<body>
<p>
Frames are not working in your Browser.<br>
If you have Frames turned off, please turn it on to view this site.
</p>
</body>
</noframes>
</frameset>
</html>
Try this frameset...
<frameset cols="19.8%,75%,*" framespacing="0" frameborder="NO" border="0">
<frame src="leftside.html" name="leftside" scrolling="NO" noresize="noresize" marginewidth="3" marginheight="10">
<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="topofthepage.html" name="topofthepage" scrolling="NO" noresize="noresize" marginewidth="3" marginheight="10">
<frame src="rightside" name="rightside" noresize="noresize" marginewidth="3" marginheight="10">
</frameset>
<frame src="rightside" name="rightside" scrolling="NO" noresize="noresize" marginewidth="3" marginheight="10">
</frameset>
Hope I got all your info right. :)
ptherin
12-30-2002, 06:57 PM
ok, that worked.
one more thing,
do you know why my flash movie doesnt play in netscape,
the control bar changes colours in ei like i wanted, but not in netscape.