Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1005477
    toddfmay
    Participant

    Hello- on http://dev-palmspringslife.pantheonsite.io/attractions/our-town/ when the browser is resized the image keeps it’s original height, but not width. Image gets tall and narrow.

    I tried :
    .site .x-recent-posts .x-recent-posts-img{
    background-size: contain !important;
    }

    but that had no affect?

    How can I keep the original size and have width and height resize at the same ratio on smaller screens?

    THanks- Todd

    #1005488
    Thai
    Moderator

    Hi There,

    Please add the following CSS under Customizer > Custom > Global CSS:

    @media (max-width: 767px){
        .entry-content.content img {
            height: auto !important;
            max-width: 100% !important;
        }
    }

    Hope it helps 🙂

    #1005612
    toddfmay
    Participant

    Great – that worded – As always – Thanks- Todd

    #1005659
    Thai
    Moderator

    If you need anything else please let us know.

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