Hi! I’m trying to align my product boxes to make them look neater, but can’t figure out a way to do so. I have already resized the images to be of the same width and height (400 pixels), yet the problem is not solved.
.product_list {
margin: 0 -23px -23px 0;
}
.product_list li {
width: 300px;
margin: 0 23px 23px 0;
padding: 8px;
background-color: #fff;
border: 1px solid #e1e1df;
text-align: center;
}
.product_list a {
display: block;
}
.product_list a:hover {
opacity: 1;
}
.product_list .image_container {
overflow: hidden;
}
.product_list .image_container img {
max-width: 300px;
max-height: 400px;
vertical-align: middle;
-webkit-transition: opacity 0.2s ease-in-out;
-moz-transition: opacity 0.2s ease-in-out;
-ms-transition: opacity 0.2s ease-in-out;
-o-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
}
.product_list .image_container:hover img {
opacity: 0.9;
}
Realized that the box on the most right (“giraffe onesie”) doesn’t begin on the same ‘line’ as the others. How do I fix this?
Here as well.
How do I align the images?
Here’s the link to my site.