DEV Community

Discussion on: The 6 most common mistakes developers when writing HTML and CSS

Collapse
 
alohci profile image
Nicholas Stimpson • Edited

No they don't. display:inline-block, display:table-cell and display:list-item all establish containing blocks, so any of those would also be consistent with that sentence from the spec. What you are looking for is section 9.7 Relationships between 'display', 'position', and 'float', step 2