Hello @mikes46
Thanks for sharing the details.
With dual-button module, the buttons get automatically stacked on mobile devices. We have set this as the default behavior because of the small screen size.
However, you can keep the buttons same size with the following CSS:
@media only screen and (max-width: 480px) {
.fl-node-5eada01d3d8c3 .pp-dual-button-content .pp-dual-button, .fl-node-5eada01d3d8c3 .pp-dual-button-content .pp-dual-button .pp-button {
display: inline-block;
float: none;
margin: 0 10px 0 0;
width: 165px;
text-align: center;
}
}
Please add this code to the child theme’s style.css file.
Thanks!
Thread Starter
IanW
(@mikes46)
@puneetsahalot
Thanks for your quick reply. This CSS puts the buttons next to each other on mobile display. I wanted the buttons on top of each other on mobile as they were but the correct size (165px) not the full width of the screen.
Thanks.
ah! My bad. Please remove the CSS that I provided earlier and use this one:
@media only screen and (max-width: 480px) {
.fl-node-5eada01d3d8c3 .pp-dual-button-content .pp-dual-button, .fl-node-5eada01d3d8c3 .pp-dual-button-content .pp-dual-button .pp-button {
margin: 0 auto 10px;
width: 165px;
}
}
Thread Starter
IanW
(@mikes46)
@puneetsahalot
Thank you. Thats great.