Once you have changed the image to display:inline-block you will have to give the <p> tag a width, display:inline-block and vertical-align:top;