Display:inline not working

display:inline is very limited and doesn’t allow any block-level styling to added to it. You’re better off using display:inline-block or using float:left. Keep in mind that if you use floats then you need to set the overflow of the parent element to overflow:auto (use visible for IE < 8) and this should work. Use inline-block first.

Leave a Comment