Background image frame for site

Home Forums Support Background image frame for site

Home Forums Support Background image frame for site

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #180064
    Oleg

    Hello!

    I use an addon Backgrounds. I want to use a background image as a frame. I hope you understand the design idea.

    1

    But how to add margins at the top and bottom of the content? Available settings do not allow this.

    2

    • This topic was modified 8 years, 1 month ago by Oleg.
    #180103
    Tom
    Lead Developer
    Lead Developer

    Give this CSS a try:

    .site-header {
        margin-top: 30px;
    }
    
    .site-footer {
        margin-bottom: 30px;
    }
    #180131
    Oleg

    No it’s not that. This adds a space from the edge. I need padding while scrolling. The second screenshot shows. That is, I want to make the content inside the image box.

    • This reply was modified 8 years, 1 month ago by Oleg.
    #180224
    Tom
    Lead Developer
    Lead Developer

    You could try something like this:

    body:before, body:after {
        content: "";
        position: fixed;
        background: #900;
        left: 0;
        right: 0;
        height: 10px;
    }
    body:before {
        top: 0;
    }
    body:after {
        bottom: 0;
    }
    body {
        border-left: 10px solid #900;
        border-right: 10px solid #900;  
    }
    #180225
    Oleg

    No, it’s not really something. I found the property of CSS: border-image. Can you recommend how best to use it to create a image frame for the entire site?

    #180227
    Tom
    Lead Developer
    Lead Developer
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.