/    Sign up×
Community /Pin to ProfileBookmark

Frameset Width, Height, and Border

Hi everyone,

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

[CODE]<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>[/CODE]

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

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 09.2010 — Nothing really works cross browser as the frameset is required to fill the available space.

Use iframes or adjust the size in the included documents.
Copy linkTweet thisAlerts:
@Rain_LoverauthorMar 09.2010 — ...adjust the size in the included documents.[/QUOTE]

Thanks for the answer, but how can I adjust the size in the included documents? I'd be grateful if you provided with me with the final code.
Copy linkTweet thisAlerts:
@FangMar 09.2010 — &lt;style type="text/css"&gt;
body {
height:200px;
width:400px; /* change value for each document */
}
&lt;/style&gt;
Copy linkTweet thisAlerts:
@Rain_LoverauthorMar 09.2010 — Doesn't seem to work:

[CODE]<html>

<frameset cols="25&#37;,50%,25%">

<frame src="http://mori79.webs.com/frame1.htm">
<frame src="http://mori79.webs.com/frame2.htm">
<frame src="http://mori79.webs.com/frame3.htm">

</frameset>

</html>[/CODE]



What am I doing wrong?
Copy linkTweet thisAlerts:
@FangMar 09.2010 — As I mentioned earlier, the frameset is required to fill the available space. It will work in IE, but not in other browsers.

Why do you want to squash 3 documents into an area of 400 x 200?
Copy linkTweet thisAlerts:
@Rain_LoverauthorMar 09.2010 — As I mentioned earlier, the frameset is required to fill the available space. It will work in IE, but not in other browsers.

Why do you want to squash 3 documents into an area of 400 x 200?[/QUOTE]


400 x 200 px and the 3 frames are just examples to learn how to control a frameset width and height in real situations.
Copy linkTweet thisAlerts:
@FangMar 09.2010 — Not really doable cross browser.
×

Success!

Help @Rain_Lover spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...