About     Blog     Github

Spaces between inline-block elements

See the Pen XbGwKm by Gautam Chandra Nadakuditi (@dhunnapotha) on CodePen.

As depicted in the above pen, we need to be a bit careful while laying down the inline block elements. Any whitesepaces between two inline block elements result in a white space in the final output.

Either we can remove the whitespaces between them or we can float them to remove any whitespaces between them.