Re: Centre collections list titles

Centre collections list titles

golazocases
Pathfinder
96 0 28

hi i would like to centralise each collections list title (player cases, kit cases etc - see attached) so that it is central within the box.

 

URL: golazocasesuk.myshopify.com

 

Screenshot 2024-08-19 at 19.41.00.png

Replies 6 (6)

Abdosamer
Shopify Partner
921 172 191

Hi @golazocases , go to theme.liquid and add the following code at the end of it before the </body> tag :

@media (max-width:700px){
.collection-card-wrapper  .card__information, .card-information {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
}
}
Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
golazocases
Pathfinder
96 0 28

Thanks but its not centred the texts within the boxes. Take the kit case text for example, you can see its centrally aligned but is at the top of the box. We want it to be centrally aligned and in the centre of the bo - same for each collection title.

 

Screenshot 2024-08-19 at 19.56.52.png

Abdosamer
Shopify Partner
921 172 191

@golazocases , Replace the previous code with this :

<style>
@media (max-width:700px){
.collection-card-wrapper  .card__information, .card-information {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
}
}

</style>
Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
golazocases
Pathfinder
96 0 28

Thanks, all look good apart from kit cases (see attached)

 

IMG_6954.PNG

steve_michael2
Explorer
133 17 21

Please try the below code and if it works, please kindly like and mark solution. Thank you

 

@media (max-width: 700px) {
  .card__information {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .card__information a[href="/collections/kit-cases"] {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; 
  }

  .card__information a[href="/collections/kit-cases"] .card__heading {
    margin: 0;
  }
}
Crafting exceptional online experiences with innovative design and technology.
golazocases
Pathfinder
96 0 28

hey this hasnt worked either