What is special with display set with inline-* ?
Hello, I was reading a bit about display set to inline, inline-block, inline-flex. What makes the "inline" thing special? It takes the width of its content and doesn't add a new line ? Is there anything more to that please. I didn't just inline-flex yet, so I don't really know where we can use them or what they do :c
2 Replies
it's kind of confusing because display sets two things simultaneously, the outside and inside display styles. The outside one determines how the element is treated in the block model, where the inside one determines how it treats its children.
I'd recommend reading the MDN article, it goes into great detail and has examples
Noted, will have a look, ty !