[Resolved] Background Image Positioning

Home Forums Support [Resolved] Background Image Positioning

Home Forums Support Background Image Positioning

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #330175
    Anthony

    Hi, I loaded a background image in the body section, but I need to position it so the top of the image meets the bottom of the navigation. (link below) Maybe you could elaborate on how to use these left top, x% y%, xpos ypos (px)? For example, what values would I need to make the above work? Here it is the website –
    http://www.expertcomputerhelp.com

    Thanks! πŸ™‚

    #330213
    Leo
    Staff
    Customer Support

    Hi there,

    This link here explains it: https://docs.generatepress.com/article/backgrounds-overview/#position

    You would need the top to be 0.

    #330218
    Leo
    Staff
    Customer Support

    Actually I think what you want is to add the background image to the Content section instead of body.

    #330233
    Anthony

    I just removed the body image “that positioned itself behind the header image”, with a content image like you said, it didn’t do what I want. I would like it to be full width without disrupting anything else.

    #330240
    Tom
    Lead Developer
    Lead Developer

    Any chance you can post a link to what you have so far?

    Also, if you have an example of what you’re wanting to do, that would help as well.

    Thanks! πŸ™‚

    #330258
    Anthony

    Sure. This is the way the background image looks in body without any position adjustments. I want the top of the image to sit at the bottom of the navbar – http://www.expertcomputerhelp.com

    #330309
    Tom
    Lead Developer
    Lead Developer

    Try applying it to the container:

    .site.container {
        background-image: url(http://expertcomputerhelp.com/wp-content/uploads/2017/06/expert-computer-help-background-LQ-BW.png);
        background-repeat: no-repeat;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #330466
    Anthony

    Nope. I would like the top of the background image to be positioned just under the navbar and to be full width like you see, just lower.

    #330511
    Leo
    Staff
    Customer Support

    Hmm I don’t see Tom’s CSS being added? How are you adding them currently?

    #330539
    Anthony

    I added Tom’s code to the “Additional CSS”. But once I saw what the code did I removed it. That code put the image in the content area. I want the body image to be full-width and positioned right at the bottom of the navbar.

    #330691
    Tom
    Lead Developer
    Lead Developer

    Hmm, right. The CSS I gave would be contained.

    You could try pushing your image down using the “Position” field under where you uploaded the image: 0 500px

    #330743
    Anthony

    That worked, Ty. πŸ™‚

    #330754
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

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