[Support request] Different background image on each page / Container smaller

Home Forums Support [Support request] Different background image on each page / Container smaller

Home Forums Support Different background image on each page / Container smaller

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #515852
    Christoph

    Hello GeneratePress support,

    I am trying on this page: http://www.uepconsult.com/acerca-de-nosotros/

    (1) I have put a background image with

    body {
        background-image: url('http://www.uepconsult.com/wp-content/uploads/2018/03/uepnosotros.jpg')
    }

    BUT what is the optimal size for the image, so thats shown well on all screens? Or how can I make this background responsive?

    and
    (2) How can I make the container width smaller (just on this page) ?

    #516069
    Leo
    Staff
    Customer Support

    Hi there,

    1. Unfortunately background image aren’t responsive by nature. I think in your case it’s best to set separate image for mobile and tablet using this method: https://docs.generatepress.com/article/responsive-display/

    2 This CSS should do:

    body .site.grid-container {
        max-width: 1000px;
    }

    Let me know if this helps 🙂

    #516157
    Christoph

    Hi Leo,

    with this body .grid-container I made it to 800px
    BUT also the logo and menu is smaller …

    See Homepage: http://www.uepconsult.com/wp-content/uploads/2018/03/container1.jpg

    See About us page: http://www.uepconsult.com/wp-content/uploads/2018/03/container2.jpg

    I just want the content container smaller … and left align with the same padding as the logo …

    #516417
    Leo
    Staff
    Customer Support

    My bad. Edited the code above.

    #516667
    Christoph

    Ok, thats work … And now the container left with the same padding as the logo ?

    #516744
    Leo
    Staff
    Customer Support

    Like remove the padding?

    If so try this:

    .separate-containers .inside-article {
        padding-left: 0;
    }
    #517152
    Christoph

    I want the container more to the left, align with the logo … May this picture explain, what I want:

    http://www.uepconsult.com/wp-content/uploads/2018/03/container3.jpg

    #517380
    Leo
    Staff
    Customer Support

    try this CSS:

    .site.grid-container {
        margin-left: 200px;
    }
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.