When working with images, it can be tricky to maintain the aspect ratio. For example, if you have an image set to a specific height like 500px within a div that is 960px wide, the image may stretch to fill the width. This can distort the image and give vertical images borders on the sides.
To solve this issue, you can set a maximum height for the image while still maintaining the aspect ratio. By using CSS properties like max-height and setting the width to auto, you can ensure that the image stays proportional.
In the code snippet provided below, there are additional styles and classes that can be used to control the appearance of the image slider. By adjusting these styles, you can customize the display of the images without distorting their proportions.
If you encounter any issues with the image stretching or distorting, try adding the following CSS rule:
.nivo-main-image { height: 600px !important; }
and remove any conflicting width properties.