Log in

View Full Version : Frameset Width, Height, and Border



Rain Lover
03-08-2010, 04:55 PM
Hi everyone,

How can I set a fixed width and height for the whole frameset:


<html>

<frameset cols="25%,50%,25%">

<frame src="http://www.w3schools.com/html/frame_a.htm">
<frame src="http://www.w3schools.com/html/frame_b.htm">
<frame src="http://www.w3schools.com/html/frame_c.htm">

</frameset>

</html>

I'd like the frameset to be just 400 x 200 px. But when I insert the above code it covers my whole webpage.
Also I'd like to put a border around the frameset.


Your help is really appreciated!

Regards
Rain Lover

jscheuer1
03-08-2010, 06:21 PM
You would have to put another page on top of it and view it through an iframe. Say the frameset page in your post is called frames.htm, then you could have another page:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>
<body>
<iframe src="frames.htm" width="400" height="200" scrolling="auto" frameborder="1"></iframe>
</body>
</html>

to view it through.