Forum Moderators: open

Message Too Old, No Replies

Frameset Width, Height, and Border

         

Rain_Lover

5:11 pm on Mar 8, 2010 (gmt 0)

10+ Year Member Top Contributors Of The Month



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

tedster

5:29 pm on Mar 8, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Rain Lover, and welcome to the forums.

By definition, a frameset always uses the entire browser window. You can accomplish your objective however, by using an iframe element and then pointing the src attribute of that iframe to a URL that contains the frameset. This means that the actual content will be living two steps away from the page itself.

Warning - this will be a compication for site maintenance. It will also be a nightmare for both search engines and many users - for example, bookmarks and backlinks will be quite dysfunctional. But depending on your purpose (running on a private kiosk application, for instance) those factors may not apply.