I have a few tips I want to say around the image thing which can help to understand relation of inline, inline-block and block:
inline
inline-block
block
vertical-align: baseline
display: block
vertical-align: top
span
If you study technicalities of fonts you can understand a whole lot better the whole vertical-align stuff and relation to inline and inline-block.
vertical-align
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have a few tips I want to say around the image thing which can help to understand relation of
inline
,inline-block
andblock
:inline-block
.inline-block
s are like a single character of text.vertical-align: baseline
by default.display: block
on image you can sayvertical-align: top
.span
wrapper to do cool stuff with characters).If you study technicalities of fonts you can understand a whole lot better the whole
vertical-align
stuff and relation toinline
andinline-block
.