The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Stretch Background & Maintain Aspect Ratio?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #39239


    How can I have a background stretched to fit the entire browser window while stretching and maintaining the aspect ratio set as well as being positioned.

    ie. minimum width & height of 100% so no part of the screen is without the background at any resolution while maintaining the image’s aspect ratio and positioned [centered vertically] and well as scaled 200%.

    Background-size in CSS3 works fine but I can’t resize the background image which is what I want it to do.

    Is there a way to do this?

    Please help.

    Thank you,


Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.