Background Images Not Set To Cover Under 1800px

Homepage Community Forums Aspire Theme Support Background Images Not Set To Cover Under 1800px

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18796
    Wayne
    Customer

      I have a website under development using Aspire Theme here:

      http://www.newdentalwebsite.com/

      In some instances the 1,4,5,7,9,12 widgets have their background images showing white space on either side.

      What is happening is that if you are viewing the website on a large screen, say 1920px and you have your browser not maximized, it becomes possible to have the browser window set to any size. So for example my browser is often sitting in my window using about 1700px of screen. What happens is that responsive CSS kicks in under 1800 px which defines the background image as “auto” – not “cover”. The leaves a little gap. The image is only 1600 pixels. So if the browser is using 1601 up to 1799 px then the background images dont cover.

      This is the CSS that is causing the issue. I am going to change the CSS from auto to cover but I would like to know if there is a reason to use auto and if I am creating some other unexpected issue.

      Thanks

      @media only screen and (max-width: 1800px)
      .front-page-1, .front-page-4, .front-page-5, .front-page-7, .front-page-9, .front-page-12 {
      -webkit-background-size: auto;—–> Change to Cover
      -moz-background-size: auto;—–> Change to Cover
      background-size: auto;—–> Change to Cover
      }

      #18797
      Wes
      Moderator

        Yes this was already fixed in the recent update. You can download the new version from your account.

        #18799
        Wayne
        Customer

          Wes, I know you changed the settings in the regular CSS, but this is in the responsive CSS. I am running Version: 1.1.2 and the mobile CSS still reads auto.

          @media only screen and (max-width: 1800px)
          .front-page-1, .front-page-4, .front-page-5, .front-page-7, .front-page-9, .front-page-12 {
          -webkit-background-size: auto;
          -moz-background-size: auto;
          background-size: auto;
          }

          Can I just change to cover with no other adverse affects?

          #18832
          Wes
          Moderator

            Yes you can do that, that’s pretty much what I’ve done. I completely removed the 1800px part from the theme entirely and use cover in the main areas. You should be able to do the exact same with no issues. If you do run into an issue just let me know and I’ll take a look to see what’s missing.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.