Q1. What is inline-block display?
inline-block combines inline behavior (horizontal flow) with block features (width, height, margins).
Q2. How is inline-block different from inline?
inline-block respects width and height; inline ignores them. inline-block also respects vertical margins.
Q3. What is a common use for inline-block?
Creating horizontal navigation menus where items need padding and margins.
Q4. What issue often occurs with inline-block?
White space between elements due to HTML formatting. Can be fixed with font-size: 0 on parent.
Q5. Can any element be set to inline-block?
Yes, display: inline-block works on any element, changing its default display behavior.
