[resolved] Post Fixed Height (3 posts)

  1. davidhildreth
    Posted 7 years ago #

    I'm looking to edit a theme so that my page has a fixed height and width.
    The width is no problem, but I'm not real sure how to go about making the height fixed.


    What is the easiest way to get get my content to fit (with a scroll bar) inside the white box behind it? Do I really have to result to some sort of iframe?

  2. drewactual
    Posted 7 years ago #

    not digging too deep into your css, the general idea will be to add three elements into your #content...

    add to it:

    height: 400px; /* or play for suitable height*/

    max-width: 400px; /* Important!! otherwise you will get horizontal scroll bars, this should be the width you want + padding and margin- again, play for suitable sizing*/

    overflow: scroll; /*you can also use auto in place of scroll, matter of fact, auto may not give you a horizontal scroll by default as it does in some browsers.*/

    add it and see what happens, get back to us if it doesn't do the trick!

  3. davidhildreth
    Posted 7 years ago #

    I just needed a shove in the right direction, I think i got it.


Topic Closed

This topic has been closed to new replies.

About this Topic