Soliloquy: Center and Scale Varying Image Sizes.

You should adjust the max-height value to be the same as the height you entered for your slider, and you should change 36 to match your slider ID (read below to see why). This will center and scale your images correctly so that no matter what size image you insert, it will be displayed properly (and centered if necessary) within your slider.