How can I display all sizes in one line on a mobile screen?

hey,

does anyone know how I can place all sizes in one line on the phone?

thanks in advance

shop: brokenmind.com

pw: test1

Hi @drew23

You can try doing it this way:

  1. Please go to Online Store β†’ Themes β†’ Edit code:
![view - 2023-03-27T150635.219.png|1802x841](upload://llGf5jg9kcFHBXBJxd0ZZE8thRC.png)
  1. Find the file base.css, add this code at the end of the file, and click Save:
@media screen and (max-width: 435px) {
   .product-form__input input[type=radio]+label{
       font-size: 1.4rem;
       margin: auto;
       padding: 1rem;
   }
}
  • Here is the result:

We hope that this can help you.

hey, i tried your code but sadly it didnt work for me.

Hi @drew23

You can try this way:

@media screen and (max-width: 545px) {
   .product-form__input input[type=radio]+label{
       font-size: 1.4rem !important;
       margin: auto !important;
       padding: 1rem !important;
       min-width: 80px !important;
   }
}
  • Here is the result:

We hope that it will work for you.

1 Like

it worked thanks! do you know by any chance how to center the sizes?

1 Like

Hi @drew23

You can try adding this code at the end of the base.css file:

@media screen and (max-width: 435px) {
  .product-form__input
    margin: 0 auto !important;
    display: flex !important;
    align-items: center;
  }
}
  • Here is the result:

hey, i added your code but it didnt change anything

Hi @drew23

We’re so sorry for the confusion, it should be 750px:

@media screen and (max-width: 750px) {
  .product-form__input
    margin: 0 auto !important;
    display: flex !important;
    align-items: center;
  }
}