0
Welcome Guest! Login
0 items Join Now

Responsive Transparent Image

  • Responsive Transparent Image

    Posted 8 years 3 months ago
    • I had help using a transparent image as a bacgrkound on all pages. It is working well for desktop browsers but not mobile. I notice the mobile browsers only take the quarter bottom of the photo instead of trying to fit the entire photo.

      www.rockettheme.com/forum/free-joomla-st...und-picture-on-pages

      Is there an override for this so the entire photo is used on mobile browsers?

      I'm using:

      body {
      background-image: url("/images/main-background.jpg");
      background-size: cover;
      background-attachment: fixed;
      }
      #rt-top-surround {
      background-color: transparent;
      }
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Responsive Transparent Image

    Posted 8 years 3 months ago
  • Re: Responsive Transparent Image

    Posted 8 years 3 months ago
    • This message contains only secure information that is visible to Robert Tee, moderators and administrators
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Responsive Transparent Image

    Posted 8 years 3 months ago
  • Re: Responsive Transparent Image

    Posted 8 years 3 months ago
    • Hello thank you. I have tried this but appears to be the same when viewing on my iphone 7 plus
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Responsive Transparent Image

    Posted 8 years 3 months ago
  • Re: Responsive Transparent Image

    Posted 8 years 3 months ago
    • I created /images/MOBILE and placed a copy of the image here. I added the path to CSS, still same results it seems..




      @media only screen and (max-width: 480px) {
      body {
      background-size: cover;
      background-image: url(/images/MOBILE/image.jpg);
      }
      }
  • Re: Responsive Transparent Image

    Posted 8 years 3 months ago
    • hello, seeing if im right here. thank you
  • Re: Responsive Transparent Image

    Posted 8 years 3 months ago
    • Here's what I'm thinking but it's still not resizing on my mobile....please help


      body {
      background-image: url("/images/SIZES/miller-pizza-chicago-storefront-background-desktop.jpg");
      background-size: cover;
      background-attachment: fixed;
      }

      #rt-top-surround {
      background-color: transparent;
      }

      .responsive-image{
      width: 100%;
      background-size: 100% 100%;
      }

      /* Retina display */
      @media screen and (min-width: 1024px){
      .responsive-image{
      background-image: url('/images/SIZES/miller-pizza-chicago-storefront-background-retina.jpg');
      }
      }

      /* Desktop */
      @media screen and (min-width: 980px) and (max-width: 1024px){
      .responsive-image{
      background-image: url('/images/SIZES/miller-pizza-chicago-storefront-background-desktop.jpg');
      }
      }

      /* Tablet */
      @media screen and (min-width: 760px) and (max-width: 980px){
      .responsive-image{
      background-image: url('/images/SIZES/miller-pizza-chicago-storefront-background-tablet.jpg');
      }
      }

      /* Mobile HD */
      @media screen and (min-width: 350px) and (max-width: 760px){
      .responsive-image{
      background-image: url('/images/SIZES/miller-pizza-chicago-storefront-background-mobile-hd.jpg');
      }
      }

      /* Mobile LD */
      @media screen and (max-width: 350px){
      .responsive-image{
      background-image: url('/images/SIZES/miller-pizza-chicago-storefront-background-mobile-ld.jpg');
      }
      }
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Responsive Transparent Image

    Posted 8 years 3 months ago

Time to create page: 0.059 seconds