/    Sign up×
Community /Pin to ProfileBookmark

Replace frameset using CSS

I’ve read repeatedly that it’s time to use CSS instead of framesets, but there’s a result I haven’t been able to duplicate via CSS:

My frameset page has 4 frames, namely a “header” across the top of the page, a “menu” down the left side below the header, and, in the remaining space, two frames above one another, the top one, “pages”, containing the main content of the page, and the bottom one, “pageButtons”, containing navigation tools.

“pages” uses a lot of display=”none” and display=”block” coding (via javascript) to hide current content and display new content.

The frameset can be seen at
[url]http://pokerskill.us/poetry/poetrySite.htm[/url]

The problem I’m having in converting to CSS is with the items in the pageButtons frame:

In the frameset coding, the arrows are always at the bottom of the page, even when I change the height of the window.

What I’ve done in CSS is to “float” the menu left and establish a <div id=”pagesAndButtons”> which contains the other two divs (“pages” and “pageButtons”).

I’ve tried pageButtons both with and without “position:absolute; bottom:1em;”

But here are the problems:

When the content of “pages” is short, the pageButton arrows appear well above the bottom of the screen. And then when “pages” displays content with greater height the arrows/buttons reamain where they were, so they’re in the middle of the content.

And when I increase the height of the window they don’t drop to the bottom of the viewport until I refresh.

So, how do I make the pageButtons ALWAYS be at the bottom of the viewport and always have the displayed content in “pages” remain above the pageButtons?

Is this an effect that can’t be duplicated via CSS?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@jackacohenauthorJun 05.2008 — To make the problems, visible, I've posted my most recent CSS attempt at

http://pokerskill.us/poetry/newPoems.htm

To see the difference in the CSS version, please

  • 1. after clicking on the link above, in the window which opens, scroll to the bottom: the blue "open" button stays in mid-window. In the frameset it remains at the bottom of the window.


  • 2. Under "Chapters" click on "Metaphysical": the new content extends beyond the bottom of the window, and again scrolling leaves the blue previous/next buttons in the same place relative to the displayed content. (In frameset they remain at the bottom of the window.)


  • 3. Then lengthen the window: the buttons to appear BELOW the border of the div which contians the "pages" and "pageButtons" divs.


  • 4. Shorten the window again. Then in the list of items which appeared when you clicked "Metaphysical", click the first one (Gyre). Then scroll to the bottom. (As we now expect, the buttons disappear off the top of the window) and click on the red "author's comment" link. New text appears below the link, and the change causes the blue prev/next buttons to move to the bottom of the window, so now they are superimposed on the "author's comment" text. In the frameset the same user-produced events leave the blue navigation buttons always at bottom and scroll the text-section upward so that all the new text appears above the buttons.


  • Can the frameset effects be duplicated using only CSS?
    Copy linkTweet thisAlerts:
    @CentauriJun 05.2008 — Have a look at this example, and the simplified explaination of it.
    ×

    Success!

    Help @jackacohen 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 6.16,
    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: @nearjob,
    tipped: article
    amount: 1000 SATS,

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

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...