CSS Positioning - Display:Inline


#1

I’m not clear on why the boxes squished together and lost their shape completely when you change Display to Inline. And Divs are BLOCK elements by default so the paragraph below confused me.

https://www.codecademy.com/courses/web-beginner-en-6merh/0/5?curriculum_id=50579fb998b470000202dc8b

“The inline display value is better suited for HTML elements that are blocks by default, such as headers and paragraphs.”

```

Replace this line with your code.

<do not remove the three backticks above>

#2

display: inline strips margins and box dimensions since inline objects do not have these by default. DIV essentially becomes SPAN in the process. Keep going with the lessons and this will play out.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.