Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2012
    Posts
    121
    Thanks
    15
    Thanked 1 Time in 1 Post

    Responsive background

    Can anyone tell me the best way to make a background responsive.

    I am building a word press layout and I have a div which has a logo background on it. I want the logo background to scale down and be responsive however it doesnt seem to work.

    I will add a link but please be aware this is very early development on this website so still needs a lot of work.

    Website Link

    Any suggestions? Thanks in advance

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,607
    Thanks
    6
    Thanked 997 Times in 970 Posts
    You can embed different sized background images, depending on the viewport size. That’s recommended anyway since you wouldn’t want to load a huge image on a mobile device.

  • #3
    Regular Coder
    Join Date
    Dec 2012
    Posts
    121
    Thanks
    15
    Thanked 1 Time in 1 Post
    Thanks Stephen I will give it a try, would still be handy to know how to make an image responsive thou in general

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,607
    Thanks
    6
    Thanked 997 Times in 970 Posts
    Most likely with background-size.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •