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 background color of the size chart

To top
<style>
scr-modal {
background: black;
}
<style>

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

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

Change the font size of the size chart link text

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

Change the size of the size chart icon

To top
<style>
div .scr-open-size-chart::before {
height: 17px !important;
width: 20px !important;
}
</style>

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

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

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

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

Center size chart data in the size chart

To top
<style>
.scr.basic table td {
text-align: center !important;
}
</style>

Change the size chart and icon to white (dark themes)

To top
<style>
div .scr-open-size-chart::before {
filter: invert(1);
}
</style>
<style>
div .scr-open-size-chart {
color: #ffffff !important;
}
</style>

Change the size chart gridline color

To top
<style>
.scr-modal table td {
border: 1px solid #c5c5c5 !important;
}
</style>

Add size chart to second location in your product page layout

To top
<div class="best-fit-size-chart"></div>
Was this article helpful?
Dislike 0

Pin It on Pinterest