Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Adding class to image to center and pad on mobile

Home / Forums / Ascend Theme / Adding class to image to center and pad on mobile

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
August 14, 2019 at 4:40 pm

Hi guys,

I’m stuck here, help! I’ve created this code:

/*buy now buttons on mobile*/

@media
only screen and (max-width: 600px) {
.buy {
padding-bottom: 20px;
}
}

For this site:

I want the Amazon buttons to line up in center and have a little space between them on a phone. I don’t know what css to use to line them up (text-align: center doesn’t work) and I can’t get the code to stick. The page code is this:

class=”buy” style=”border: none; text-decoration: none; padding-right: 10px;” href=” target=”_blank” rel=”noopener noreferrer”><a class=”buy” style=”border: none; text-decoration: none;” href=” target=”_blank” rel=”noopener noreferrer”>

Can you help? Thank you!

  • The forum ‘Ascend Theme’ is closed to new topics and replies.