orion3dgames / gridder

A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images.
http://orion3dgames.github.io/gridder/
461 stars 130 forks source link

display:inline-block on ul with 100% width #30

Closed jan-dh closed 9 years ago

jan-dh commented 9 years ago

I had a problem today when trying to implement the plugin with a unorderd list that had a width of 100%. For some strange reason there was always a white border on my divs and the floating element kept pushing away my divs.

One of the solutions is to give the parent element a font-size of 0px and apply a font-size on the list-items.

orion3dgames commented 9 years ago

Yes, there are a few different solution for removing the space between inline-block items. I usually just ommit the closing , it works like a charm too.