div { /*display: block;*/ line-height: normal; font-size: 0; } gallery-grid-photo { display: inline-block; cursor: pointer; margin: 2px; }