How can I change the look of my size chart?

Here are some code snippets to help you change the look of your size chart.

You can place this code below {% include ‘sizeChartsRelentless’ %} in your theme.liquid file.

<style>
/* change the font and border style of the whole table */
.scr-modal table td {
font-family: Arial;
border: 1px solid black;
}
/* make the first row black with white, centered text */
.scr-modal table tr:first-child td {
background: black;
color: white;
text-align: center;
}
/* give the rows after the first row a white background and center the text */
.scr-modal table tr:nth-child(n+2) td {
background: white;
text-align: center;
}
</style>

Change the color of the size chart link text. Replace the color with the color you want.

<style>
div .scr-open-size-chart {
color: #000000 !important;
}
</style>

Change the font size of the size chart link text.

<style>
div .scr-open-size-chart {
font-size: 18px !important;
}
</style>

Change the font size of the size chart table text for mobile devices.

<style>
@media (max-width: 500px) {
.scr table td {
font-size: 12px !important;
}
}
</style>

Change the width of the size chart (normally 700px)

<style>
.scr-modal {
max-width: 700px !important;
}
</style>

Center size chart data in the size chart

<style>
.scr.basic table td {
text-align: center !important;
}
</style>
Was this article helpful?
Dislike 0

Pin It on Pinterest