Use vertical padding instead of height. The height property, when set as a percentage, is calculated relative to the height of the parent. However, a DIV with its height set to 0 can have either its padding-top or padding-bottom set to a percentage of its width.