Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #541201

    I am using html to put a transparent logo in the caption area of a fullwidth slider.

    The transparent image looks great on the desktop. When it is on a cell phone the image gets pushed in too much on the sides. I have tried to look for a way to reduce the height of the image so it would look good but I can’t get anything to work.

    I tried to use this as a base to work with but had no luck making changes to it so it would work for my image I placed in the caption area:

    @media only screen and (max-width: 767px) {
    .avia-slideshow li img {
    width: 90% !important;
    max-height: 267px;
    }}

    Thank you for your help.

    #541413

    Hi Micheal0424,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #541942

    Here is the link, thank you.

    #542171

    Hi,

    Please try this instead:

    @media only screen and (max-width: 767px) {
    .avia-caption-content p img {
        width: auto !important;
        height: auto !important;
    }
    }

    Thanks,
    Rikard

    #542844

    Worked perfectly, thank you very much.

    #542977

    Hi,

    Great, glad we could help :-)

    Cheers!
    Rikard

    #651786

    Thank you, this is resolved.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Fullwidth Slider html image in caption for mobile device’ is closed to new replies.