www.webdeveloper.com
Results 1 to 12 of 12

Thread: problem with frames

  1. #1
    Join Date
    May 2003
    Location
    Apeldoorn, the Netherlands
    Posts
    14

    Question 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 http://members.chello.nl/~e.helmsing/futura/ and press home in the top menu.

    Many thanx!
    Evert


    ---------------------------
    Knowledge is good
    Spreading knowledge is better
    ---------------------------

  2. #2
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,148
    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
    Last edited by DaveSW; 05-21-2003 at 07:43 AM.
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  3. #3
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Yes, framesets may be nested to any level: http://www.w3.org/TR/REC-html40/pres...idx-frameset-1

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  4. #4
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,148
    http://msdn.microsoft.com/library/de...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.
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  5. #5
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,148
    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.
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  6. #6
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Originally posted by DaveSW
    Looks like you can't have a horizontal scroll without a vertical scroll and vice versa. Sorry.
    Horizontal scroll, but no vertical scroll:

    <body style="overflow-y:hidden;">

    Vertical scroll, but no horizontal scroll:

    <body style="overflow-x:hidden;">

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  7. #7
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,148
    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?
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  8. #8
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    No, it should be applied to the <body> of the page you are calling in your frameset.

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  9. #9
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    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>

  10. #10
    Join Date
    May 2003
    Location
    Apeldoorn, the Netherlands
    Posts
    14

    Question thanx, but....

    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.)


    ---------------------------
    Knowledge is good
    Spreading knowledge is better
    ---------------------------

  11. #11
    Join Date
    May 2003
    Location
    Apeldoorn, the Netherlands
    Posts
    14

    problem solved

    Originally posted by pyro
    Horizontal scroll, but no vertical scroll:

    <body style="overflow-y:hidden;">

    Vertical scroll, but no horizontal scroll:

    <body style="overflow-x:hidden;">
    "TRY AND ERROR". I put the code into main.htm and it worked very well!!

    THANX pyro (and the rest!)


    ---------------------------
    Knowledge is good
    Spreading knowledge is better
    ---------------------------

  12. #12
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104

    Thumbs up

    You're welcome

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles