Source: internet |
The block, inline, inline-block CSS properties are almost used in the div, class, span elements. The diffirence among them is:
display:block - Force the elements displaying as a vertical stack of blocks.
display:inline - Force the elements displaying as a continous block flow.
display:inline-block - Force the elements displaying as a hozitional block flow.
Notes:
Block-level elements start on a new line such as <h1>, <p>, <ul>, <li>.
Inline Elements start on a same line such as <img> <b> <i> <span>
0 comments:
Post a Comment