CSS Code Remove Space Between Inline Elements
CSS Code Different Ways to Remove the Annoying Space Between Inline Elements or Divs
Surround the inline divs you wish to remove the space from with a div and set that divs font-size:0;
Here are 3 inline elements before applying the font-size:0; trick
inline elements
with the natural
space between
Here are 3 inline elements after applying the font-size:0; trick
inline elements
with space
between removed
Don't forget to reset the font-size for the inline elements to your desired font size.
Use negative margins to remove the space between inline elements
inline elements
space removed via
margin-right:-5px;
Remove spaces and line breaks between the html that make up the inline elements
inline elements
with html
space removed