Tagged: fullwidth button
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
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
Is this only for mobile Andy?
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
Great thanks! I’ll test it immediately.
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