/    Sign up×
Community /Pin to ProfileBookmark

problem with frames

Who can help me with a problem that i’m having with frames? I have created frames with a header, a body and a footer. The body has also frames with right, main and left frame.

Now everything seems to work, but in frame main I get an horizontal scrollbar as well as a vertical scrollbar when opening a new webpage into this frame. The vertical scrollbar is OK, but I don’t want to have the horizontal one. Who can help me?

For an isolated example go to [url]http://members.chello.nl/~e.helmsing/futura/[/url] and press home in the top menu.

Many thanx!
Evert

to post a comment
HTML

11 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWMay 21.2003 — I don't get a horizontal scrollbar.

However, I don't know if framesets are supposed to be nested like this. Anyone?

Can't actually open the page properly- it jumps out of it's frameset

EDITED: It works now
Copy linkTweet thisAlerts:
@pyroMay 21.2003 — Yes, framesets may be nested to any level: http://www.w3.org/TR/REC-html40/present/frames.html#idx-frameset-1
Copy linkTweet thisAlerts:
@DaveSWMay 21.2003 — http://msdn.microsoft.com/library/default.asp?url=/workshop/author/css/overview/measurementandlocation.asp?frame=true

Looks like you can't have a horizontal scroll without a vertical scroll and vice versa. Sorry.

You could set scrolling property to 'no' and use a


<div style="overflow:auto;">page contents</div>

You would then need to specify a width and height for the div like

<div style="width:500px; height: 200px; overflow:auto;">page contents</div>

There doesn't appear to be an easy solution according to the microsoft link.
Copy linkTweet thisAlerts:
@DaveSWMay 21.2003 — Can't get it to paste a proper link because it's all in frames.

Here's the content anyway:

SCROLLING Attribute | scrolling Property Internet Development Index


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

Sets or retrieves whether the frame can be scrolled.

Syntax

HTML <ELEMENT SCROLLING = sScrolling... >


Scripting object.scrolling [ = sScrolling ]

Possible Values

sScrolling String that specifies or receives one of the following values.auto Default. Browser determines whether scroll bars are necessary.

no Frame cannot be scrolled.

yes Frame can be scrolled.


The property is read/write. The property has a default value of auto.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Standards Information

This property is defined in HTML 4.0 and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .

Applies To

IFRAME

Platform Version

Win16: 3.02

Win32: 3.02

WinCE: 4.0

Unix: 4.0

Mac: 3.02

Version data is listed when the mouse hovers over a link, or the link has focus.

FRAME, IFRAME

Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms.
Copy linkTweet thisAlerts:
@pyroMay 21.2003 — [i]Originally posted by DaveSW [/i]

[B]Looks like you can't have a horizontal scroll without a vertical scroll and vice versa. Sorry.[/B][/QUOTE]
Horizontal scroll, but no vertical scroll:

[color=darkblue]<body style="overflow-y:hidden;">[/color]

Vertical scroll, but no horizontal scroll:

[color=darkblue]<body style="overflow-x:hidden;">[/color]
Copy linkTweet thisAlerts:
@DaveSWMay 21.2003 — Slightly different approach but yeah I guess. CSS to save the day LOL. But there's still no easy way in Coffee Cup's web page creator unless you are slightly familiar with the code!

Should that css be applied to the frame, rather than the body?
Copy linkTweet thisAlerts:
@pyroMay 21.2003 — No, it should be applied to the <body> of the page you are calling in your frameset.
Copy linkTweet thisAlerts:
@FangMay 21.2003 — The width of frame "main" is causing a problem with IE's calculated width. You have hspace, marginwidth and frameset column width. If you set the <body style="width:758px" ...> ie. 800 - 2x hspace - 2x marginwidth -2 (calculation error Doh!) the hor. scrollbar disapears. Try and simplify the margins - do them in the documents not the frameset(s).

Are your framesets correct? This is what you are trying to do:

<frameset rows="95,*,50" ... >

<frame name="head" ... >

<frameset cols="*
,800,*" ... >

<frame name="left" ... />

<frame name="main" ... >

<frame name="right" ... >

</frameset>

<frame name="foot" ... >

</frameset>
Copy linkTweet thisAlerts:
@evert1803authorMay 22.2003 — OK, everybody thanx sofar for their input. Although I'm not quite sure how to proceed...

Fang wrote that I should take the next code: <body style="width:758px">, Should that be in all the pages that are ment to be put into frame main or... ?

The example page being opened in the frame main is http://members.chello.nl/~e.helmsing/futura/main.htm.

(Some of you talked about Coffeecup software... I try to code everything myself in stead of using WYSIWYG-programs like frontpage.)
Copy linkTweet thisAlerts:
@evert1803authorMay 22.2003 — [i]Originally posted by pyro [/i]

[B]Horizontal scroll, but no vertical scroll:



[color=darkblue]<body style="overflow-y:hidden;">[/color]



Vertical scroll, but no horizontal scroll:



[color=darkblue]<body style="overflow-x:hidden;">[/color] [/B]
[/QUOTE]


"TRY AND ERROR". I put the code into main.htm and it worked very well!!

THANX pyro (and the rest!)
Copy linkTweet thisAlerts:
@pyroMay 22.2003 — You're welcome
×

Success!

Help @evert1803 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.28,
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,
)...