Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1185467

    Hello,

    Would you know the quick css code to enable my home page fullwidth easy slider captions and sub-captions for the mobile version with fonts that fit on the image dynamically when it switches from portrait to landscape on the phone and tablet.

    Thank you kindly,

    #1185612

    Hey haines1,

    Please try the following in Quick CSS under Enfold->General Styling:

    Landscape:

    @media only screen 
    and (min-device-width : 768px) 
    and (max-device-width : 1024px) 
    and (orientation : landscape) { 
      .slideshow_align_caption h2 {
        font-size: 24px;
      }
      .avia-caption-content p {
        font-size: 18px;
      }
    }

    Portrait:

    @media only screen 
    and (min-device-width : 768px) 
    and (max-device-width : 1024px) 
    and (orientation : portrait) { 
      .slideshow_align_caption h2 {
        font-size: 20px;
      }
      .avia-caption-content p {
        font-size: 14px;
      }
    }

    Best regards,
    Rikard

    #1185894
    This reply has been marked as private.
    #1185918

    Hi,

    Did you add the code to the very top of quick css so it so it runs first? Also, be sure to clear the cache a few times over.

    Best regards,
    Jordan Shannon

    #1185934
    This reply has been marked as private.
    #1186222

    Hi,

    Thanks for the update, are you checking on a mobile phone? The CSS I sent will only apply to tablet screen sizes. Could you check that resolution first please?

    Best regards,
    Rikard

    #1186236
    This reply has been marked as private.
    #1186237

    Hi Rikard,

    I do not have a tablet at this time. Can we optimize for PC and Smartphone for now?

    Thank you.

    #1186643

    Hi,

    Yes, you can simply change the pixel values in the media queries:

    @media only screen  
    and (max-device-width : 767px) 
    and (orientation : landscape) { 
      .slideshow_align_caption h2 {
        font-size: 24px;
      }
      .avia-caption-content p {
        font-size: 18px;
      }
    }
    
    @media only screen 
    and (max-device-width : 767px) 
    and (orientation : portrait) { 
      .slideshow_align_caption h2 {
        font-size: 20px;
      }
      .avia-caption-content p {
        font-size: 14px;
      }
    }

    Best regards,
    Rikard

    #1188573
    This reply has been marked as private.
    #1188926

    Hi haines1,

    Please try the code like this:

    
    
    @media only screen  
    and (max-device-width : 767px) 
    and (max-width: 767px)
    and (orientation : landscape) { 
      .slideshow_align_caption h2 {
        font-size: 24px !important;
      }
      .avia-caption-content p {
        font-size: 18px !important;;
      }
    }
    
    @media only screen 
    and (max-device-width : 767px) 
    and (max-width: 767px)
    and (orientation : portrait) { 
      .slideshow_align_caption h2 {
        font-size: 20px !important;
      }
      .avia-caption-content p {
        font-size: 14px !important;
      }
    }
    
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

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