[Resolved] Change container height

Home Forums Support [Resolved] Change container height

Home Forums Support Change container height

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1368493
    Christian Lux

    Is there a way to change the container height only on one page? The main page on my website doesn’t have enough content to make the container end with the footer.

    #1368537
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    @media (min-width: 769px) {
        .home #page {
            min-height: calc( 100vh - 350px );
        }
    }

    It will make the Page container the height of the browser -minus the height of the header+nav+footer

    #1368556
    Christian Lux

    Thanks alot.

    #1368568
    David
    Staff
    Customer Support

    You’re welcome

    #1368620
    Christian Lux

    Where do I have to put it?
    Adding it into additional css on the customizer doesn’t work.
    See here

    #1368787
    Leo
    Staff
    Customer Support

    Try this for your site instead:

    @media (min-width: 769px) {
        .page-id-50 #page {
            min-height: calc( 100vh - 350px );
        }
    }
    #1368917
    Christian Lux

    Great, it’s working ๐Ÿ™‚ Thank you Leo.

    #1368918
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

    #1387438
    Christian Lux

    I’m sorry to use this again. Is there also a way to change it globally?

    #1387860
    David
    Staff
    Customer Support

    Change:

    .page-id-50 #page {

    to

    #page {

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.