![when creating labels in word address 2 leaves space when creating labels in word address 2 leaves space](https://support.content.office.net/en-us/media/0c6a4c91-7d45-4586-bcd8-4421b16db854.gif)
#WHEN CREATING LABELS IN WORD ADDRESS 2 LEAVES SPACE CODE#
Apparently this is problematic in older IE (6 & 7), but if you don’t care about those browsers at least you can keep the code formatting clean. You can scoot the elements back into place with negative 4px of margin (may need to be adjusted based on font size of parent). They’re all pretty funky, but it does the trick. Minimized HTML will solve this problem, or one of these tricks: The reason you get the spaces is because, well, you have spaces between the elements (a line break and a few tabs counts as a space, just to be clear). Here’s some ways to fight the gap and get inline-block elements sitting directly next to each other.
![when creating labels in word address 2 leaves space when creating labels in word address 2 leaves space](https://venturebeat.com/wp-content/uploads/2020/04/Shield-dashboard-including-malware-alert.png)
That’s not to say the spec couldn’t be updated to say that spaces between inline-block elements should be nothing, but I’m fairly certain that is a huge can of worms that is unlikely to ever happen. You want spaces between words that you type to be spaces right? The spaces between these blocks are just like spaces between words. It’s just the way setting elements on a line works. In the case of navigation, that means it avoids the awkward little unclickable gaps. We often want the elements to butt up against each other. Here’s the deal: a series of inline-block elements formatted like you normally format HTML will have spaces in between them. I’ve seen this come up a couple of times lately on Twitter and then an interesting Dabblet so I figured it would be an important thing to document.