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

    Hi,

    On image.serv10.wpbouwlocatie.nl I’m using to fullwidth buttons. Beside each other. But on mobile view they are under each other. Is is possible to resize them on mobile and hold them on one line?

    Regards,
    Kees

    #563324

    Hi keeslamper!

    use this code in Quick CSS field:

    .flex_column.av_one_half.flex_column_div.first.avia-builder-el-2.el_after_av_layerslider.el_before_av_one_half.avia-builder-el-first {
    width: 45% !important;
    }
    .flex_column.av_one_half.flex_column_div.avia-builder-el-4.el_after_av_one_half.el_before_av_hr {
    width: 45%;
    margin-left: 10px !important;
    }
    

    and adjust as needed.

    Best regards,
    Andy

    #563332

    Is this only for mobile Andy?

    #563336

    Hey!

    oh sorry, forget to add some media queries:

    @media only screen and (max-width: 736px) {
    .flex_column.av_one_half.flex_column_div.first.avia-builder-el-2.el_after_av_layerslider.el_before_av_one_half.avia-builder-el-first {
    width: 45% !important;
    }
    .flex_column.av_one_half.flex_column_div.avia-builder-el-4.el_after_av_one_half.el_before_av_hr {
    width: 45%;
    margin-left: 10px !important;
    }
    }
    

    Best regards,
    Andy

    • This reply was modified 8 years, 11 months ago by Andy.
    #563338

    Great thanks! I’ll test it immediately.

    #563368

    Andy,

    It’s only working for left button.

    http://image.serv10.wpbouwlocatie.nl

    #563864

    Hi!

    then you might need to add an !important for the second width value (second button) as well:

    @media only screen and (max-width: 736px) {
    .flex_column.av_one_half.flex_column_div.first.avia-builder-el-2.el_after_av_layerslider.el_before_av_one_half.avia-builder-el-first {
    width: 45% !important;
    }
    .flex_column.av_one_half.flex_column_div.avia-builder-el-4.el_after_av_one_half.el_before_av_hr {
    width: 45% !important;
    margin-left: 10px !important;
    }
    }
    

    Let me know if this helps.

    Cheers!
    Andy

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