I am struggling with the following code snippet:
<div class="ml-auto text-right">
<button class="btn btn-next mobile" />
</div>
Along with this block of css
:
@media screen and (max-width: 576px) {
.mobile {
width: 100%;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
display: block;
text-align: center;
}
}
My goal is to have the button aligned right on desktop, while expanding to full width on mobile.
Unfortunately, my current implementation is not producing the desired result.
Can someone please provide guidance on the correct approach to achieve this?