@pizzaboy913 I’ve been looking for ways to make it centered many times, including in your thread. After I updated the new version I faced this issue as well. Today, I decided to ask ChatGPT again and this time it is working!
/* Ensure the entire CRP container is centered */
.crp_related.crp-rounded-thumbs {
display: flex;
justify-content: center; /* Centers the content horizontally */
flex-wrap: wrap; /* Allows items to wrap to the next line if necessary */
text-align: center;
}
/* Ensure the UL is centered and spans the available width */
.crp_related.crp-rounded-thumbs ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center; /* Center the UL items horizontally */
flex-wrap: wrap; /* Allows for wrapping if items exceed the width */
}
/* Style the LI items to be centered and in a row */
.crp_related.crp-rounded-thumbs li {
margin: 10px;
display: inline-block;
vertical-align: top;
text-align: center;
}
/* Ensure the A elements and content inside are centered */
.crp_related.crp-rounded-thumbs a {
display: block;
text-align: center;
}
/* Style the images to be centered */
.crp_related.crp-rounded-thumbs img.crp_thumb {
display: block;
margin: 0 auto;
max-width: 100%;
height: auto;
object-fit: cover;
}
/* Center figure elements */
.crp_related.crp-rounded-thumbs figure {
margin: 0;
text-align: center;
}