• Resolved Cadeng

    (@cadeng)


    Hello, i wonder if we can put background image on the main content area?
    My site https://www.ruangsejuk.com i want to put image at the main content area as a background (currently white). Can i get help?
    ps: Sorry for my bad english

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try the following code to see the effect.

    div#content, div#sidebar {
        background-color: transparent;
    }
    
    div#main{
        background-image: url(https://www.pulsarwallpapers.com/data/media/3/Alien%20Ink%202560X1600%20Abstract%20Background.jpg);
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }

    This will help you to give the main content a single background image.

    Thread Starter Cadeng

    (@cadeng)

    Got it. Thank for the help..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to put background image on content area?’ is closed to new replies.