Support

Home Forums Event Espresso Premium Changing width of the add to cart button

Changing width of the add to cart button

Posted: March 28, 2018 at 1:40 pm

Viewing 1 reply thread


TOCIFT

March 28, 2018 at 1:40 pm

I need to change the width of the add to cart button in css. I added this code


@media
(min-width: 1000px)
.header-menu__layout .menu>li>a.btn {
width: 150px;
max-width: 220px;
/* padding: 3px; */
font-weight: bold;
}

But it didn’t work. Can you give me some any ideas where I messed up?

Thanks!!

Laura


Josh

  • Support Staff

March 28, 2018 at 2:33 pm

Hi Laura,

Generally speaking if you set a pixel width on a button you’ll likely run into issues where the text gets cut off. Here’s a different approach:

@media (min-width: 1000px){
.ticket-selector-submit-btn {
font-size: 16px; 
font-weight: bold;
}}

If you want to make the button wider, you increase the font-size. To make it narrower, you decrease the font-size.

Viewing 1 reply thread

The support post ‘Changing width of the add to cart button’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso