Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Inline Block Elements White Space Collapsing Re: Inline Block Elements White Space Collapsing

#103640
MacNimble
Member

@joshuanhibbert:
Sure — see this screenshot. It doesn’t cut it there and forces the final block underneath the others.

I put “font-size: 0rem” in because I only want browsers that recognize rem to apply the size. Since I am restoring it with font-size: 1rem in the next rule, it seemed logical to enforce it in the first rule as well. I am using display: table to target Safari which won’t respect font-size: 0 for inline-block styled elements.