Background-size:contain "y"? Just set the height to 100% and the width to auto: .foo { background-size: auto 100%; }