admin管理员组文章数量:1122846
I am using WordPress buttons I would like to know how to align Button on the right of the image on desktop but below the image on mobile.
Here is an example:
Please see the amazon buttons on this page.
On desktop this buttons align to the right. like this:
and on mobile the buttons are below the image:
Thanks!
I am using WordPress buttons I would like to know how to align Button on the right of the image on desktop but below the image on mobile.
Here is an example: https://www.verywellfit.com/best-ankle-weights-4158657
Please see the amazon buttons on this page.
On desktop this buttons align to the right. like this:
and on mobile the buttons are below the image:
Thanks!
Share Improve this question asked May 29, 2020 at 20:31 alizaibkhan4alizaibkhan4 11 Answer
Reset to default 0CSS would check the width of the screen, and (if small enough), change the display of the picture to block. As taught by W3Schools ...
<style> .the-image, .the-price { display: inline-block; } @media only screen and (max-width:600px) { .the-image { display: block; } } </style> <img class="the-image" src="..."> <div class="the-price">...</div>
本文标签: How to align Button on the right of the image on desktop but below the image on mobile
版权声明:本文标题:How to align Button on the right of the image on desktop but below the image on mobile 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736290568a1928540.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论