Home Forums Basel support forum How to switch off image class on small screens?

How to switch off image class on small screens?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #269041

    oleg_dmitriev
    Participant

    Hi Elise,

    When I insert image with , and text on the right, it lookg ok on big screens. But on small screens, the text is squeezed https://ibb.co/hCGMLh5

    How can I switch off class=”alignleft” on smalls creens, so that the text drops down like this? https://ibb.co/Sc9VjMJ

    Can you please sugges a custom class that will switch on alignleft for large screens only?
    Thanks!!!

    (The page in question is in private.)

    #269134

    Artem Temos
    Keymaster

    Hello,

    You can use alignleft-desktop class for this image. And add the following CSS to the Custom CSS for desktop devices only

    .alignleft-desktop {
        float: left;
        margin-top: 3px;
        margin-bottom: 20px;
        margin-right: 25px;
    }

    Kind Regards

    #269223

    oleg_dmitriev
    Participant

    Hi Artem, thanks for replying!

    I’ve added it like this,works fine 🙂


    @media
    only screen and (min-width: 768px) {
    .iw-alignleft {
    float: left;
    margin-top: 3px;
    margin-bottom: 20px;
    margin-right: 25px;
    }

    #269226

    Artem Temos
    Keymaster

    Great, you are welcome! Feel free to contact us if you have any questions.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘How to switch off image class on small screens?’ is closed to new replies.