WordPress.org

Support

Support » Themes and Templates » Can a scrolling frame be added to a page’s content area?

Can a scrolling frame be added to a page’s content area?

  • David Borrink

    @davidborrink

    My client is requesting a template where a page has a scrolling content area so that the sidebars and headers do not disappear. Neat idea for him, but I’m looking on here and did searches on using frames in themes and I’m not finding any answers.

    I know how to set up a page as the front page on a site, but…

    Is there a way to allow a container area to have scrolling bars?

Viewing 3 replies - 1 through 3 (of 3 total)
  • set the objects height then give overflow property

    .cssClassName{
    	height:400px;
    	overflow: auto;
    }

    This will place scroll bars automatically if content exceeds 400px

    or

    .cssClassName{
    	height: 400px;
    	overflow: scroll;
    }

    This will always place scroll bars on the object – dimmed out if content doesnt exceed the height.

    David Borrink

    @davidborrink

    Thanks, Zeniph.

    Looks pretty straightforward. One of these days I’ll really understand most of the CSS functions.

    I’m an absolute beginner with a clean WP install of the default theme. Can you tell me where I would insert the lines above in order to make the main content area scroll on the default theme.

    I think that learning even this will help me get going. If anyone can recommend any books for CSS etc that will be great too.

    Thank you…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can a scrolling frame be added to a page’s content area?’ is closed to new replies.
Skip to toolbar