Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1380978
    Eric
    Participant

    Hey one last question. On my get in touch page, I have a background image that looks great on desktop and mobile, however on the tablet, the image only covers about half the screen (as you can see in screenshot 1). What I was wondering is if it’s possible to add some CSS that would make the background image full screen on tablet only. I saw a couple of threads within the forum and from what I saw it seems to be possible, however none of those codes worked on my hand.

    Please let me know and thanks again for all your help.

    #1380979
    Eric
    Participant
    This reply has been marked as private.
    #1381127
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> Global CSS :

    .page-id-151 div#x-section-1 {
        height: 63vh;
    }

    Hope that helps.

    #1381460
    Eric
    Participant

    Hey sorry I put in the code but it made no difference. Any other ideas?

    Thanks for the response

    #1381621
    Nabeel A
    Moderator

    Hi again,

    Please replace the previous code with the following code:

    @media (min-width: 768px) and (max-width: 1024px) {
        .page-id-151 #x-section-1 {
            height: 72vh !important;
        }
    }

    Let us know how this goes!

    #1381884
    Eric
    Participant

    Hey thanks for the reply. Unfortunately that didn’t work either though. In both cases the code doesn’t seem to be affecting the image on the tablet or on the desktop.

    If you have any other ideas, please let me know.

    And once again thanks for all your help!

    #1382316
    Friech
    Moderator

    Hi There,

    You missed the the closing bracket of @media (max-width: 480px), please resolve that first.

    Then add this on your custom CSS.

    /* iPad only */
    @media only screen 
      and (min-device-width: 768px) 
      and (max-device-width: 1024px) 
      and (-webkit-min-device-pixel-ratio: 1) {
     .page-id-151 #x-section-1 {
      	height: calc(100vh - 273px);
      }
    }

    Make sure to clear your browser’s cache before previewing the page.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1380978 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>