difference between display:inline flex; and display:inline-flex;?

Hi. i have always written display:inline flex; but i just realized that you can also write display:inline-flex; so i'm just wondering. Is there any difference between them? I know that it is used to create and inline flex container. I just don't know if there is any difference between them...
5 Replies
Jochem
Jochem2y ago
there is none: https://developer.mozilla.org/en-US/docs/Web/CSS/display#grouped_values
inline-flex The element behaves like an inline-level element and lays out its content according to the flexbox model. It is equivalent to inline flex.
display sets the inner and outer display mode, but some keywords combine both. inline-flex is one of them, but you can also be explicit
Tok124 (CSS Nerd)
Ah okay. thanks for letting me know
Tok124 (CSS Nerd)
But there is one difference that i have noticed. But it's just in the devtools. If you use display:inline-flex; you get this button next to it. but not if you use display:inline flex;
Jochem
Jochem2y ago
huh, that's interesting. Layout wise there shouldn't be any difference, and technically that's probably a bug in the devtools
Tok124 (CSS Nerd)
Probably yeah haha
Want results from more Discord servers?
Add your server