bravo14 Posted October 7, 2012 Share Posted October 7, 2012 I am trying to produce a list of images with a height of 210px using the css below. However it doesn't seem to pick up the height. #sponsors ul{ list-style:none; } #sponsors li{ border:solid 3px #666666; width:210px; height:210px; background:url(../images/bg-sponsor.png); list-style:none; display:inline; vertical-align:middle; } #sponsors li img{ max-width:200px; border:none; } any ideas why? Quote Link to comment https://forums.phpfreaks.com/topic/269184-list-height/ Share on other sites More sharing options...
Christian F. Posted October 7, 2012 Share Posted October 7, 2012 Inline elements doesn't have a set height, set it to "inline-block" instead. Quote Link to comment https://forums.phpfreaks.com/topic/269184-list-height/#findComment-1383436 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.