CSS Research - Inline vs Inline-Block
Comparison table
| Display Type | Respects height and width properties? | Starts on new line? |
|---|---|---|
inline |
❌ No | ❌ No |
inline-block |
✅ Yes | ❌ No |
Simple explanation
If you use the inline style, stuff you add to the page will only be as tall and wide as it needs to be to fit in whatever it contains. inline-block however will act just like inline, however you can force each part with this display type to specifically be a certain amount of pixels (or another unit) tall / wide.