Write vertical-align:top;
. Write like this:
img {
display:inline-block;
margin:0;
vertical-align:top;
}
Check this http://jsfiddle.net/dJVxb/4/
More Related Contents:
- What is a clearfix?
- How to center an element horizontally and vertically
- How do you keep parents of floated elements from collapsing? [duplicate]
- CSS: Width in percentage and Borders
- How can I expand floated child div’s height to parent’s height?
- Fixed Table Cell Width
- Transform: translate(-50%, -50%)
- Position absolute and overflow hidden
- Difference between position:sticky and position:fixed?
- Can a span be closed using ?
- Printing HTML table with many columns/rows using CSS layout?
- Can overflow:hidden affect layout?
- How do I get a flexbox to have a center fixed and a bottom fixed children together?
- CSS Layout 2-Column fixed-fluid [closed]
- Yet Another Divs vs Tables issue: Forms
- Balanced text wrapping in HTML
- CSS margin pushing the body element
- Is it bad design to use table tags when displaying forms in html?
- Menu does not align correctly in Safari
- Bootstrap full-width with 2 different backgrounds (and 2 columns)
- Minimum and maximum value of z-index?
- Adding HTML entities using CSS content
- How can I find an element by CSS class with XPath?
- Should I use px or rem value units in my CSS? [closed]
- How can I make a display:flex container expand horizontally with its wrapped contents?
- How to center an iframe horizontally?
- HTML input field OUTSIDE of a form
- Why would Google use a font tag?
- Styling the “ element in CSS?
- Sizing flex items on the last row