Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #870010

    Travis C
    Participant

    Hello 🙂
    I’m working with a site at http://digitalmuscle.com
    I am trying to set up something like a background takeover ad using the background like this.
    http://demo.99robots.com/background-takeover/

    However my images don’t really fit the sides like they should and scale up and down in such a way I can’t figure out. Any advice?

    #870505

    Rupok
    Member

    Hi there,

    Thanks for writing in! You can use something like :

    body {
      background-size: 100% auto;
    }

    Also you can add some padding to make the background more visible

    body {
      background-size: 100% auto;
      padding: 0 10%;
    }

    Hope this helps.

    Cheers!