1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Background Resize based on viewers resolution?

Discussion in 'Styling and Customization Questions' started by Luciferia, Feb 5, 2012.

  1. Luciferia

    Luciferia Member

    Does anyone know how to make it so that backgrounds resize based on what resolution the viewer is using?

    I made a bunch of themes at 1920x1080, and then found out a lot of my members are using really small resolutions still. I would like a way to make the backgrounds fit, without having to resize the images myself and uploading entirely new themes.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. Luciferia

    Luciferia Member

    For whatever reason, that didn't work. :(
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Sorry try this one:

    background-size: contain;
    I just tested that with a large background image that exceeded my browser. Adding this property successfully shrunk the image to fit.
  5. Luciferia

    Luciferia Member

    Awesome, it worked! TYVM. :)

Share This Page