Skip to content

Commit 994664b

Browse files
committed
added inline and block
1 parent d19365b commit 994664b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

css.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ <h2>6. display vs visibility</h2>
315315
<h2>7. inline block</h2>
316316
<p><strong>Question:</strong> What are the differences between inline, block and inline-block</p>
317317
<p><strong>Answer: </strong></p>
318+
<p><code>inline</code>, elements do not break the flow. think of span it fits in the line. Important points about inline elements, margin/padding will push other elements horizontally not vertically. Moreover, inline elements ignores height and width.</p>
319+
<p><code>block</code>, breaks the flow and dont sits inline. they are usually container like div, section, ul and also text p, h1, etc.</p>
320+
<p><code>inline-block</code>, will be similar to inline and will go with the flow of the page. Only differences is this this will take height and width.</p>
321+
<p>ref: <a href="http://css-tricks.com/almanac/properties/d/display/">display</a></p>
318322
</div>
319323
<div id="mark">
320324
<h2>8. box model</h2>

0 commit comments

Comments
 (0)