Q&A
Ask and answer questions to make information more available to wider audiences.
Cash Accrington @accringtoncash   23, Apr 2023 12:00 AM
the difference between inline, inline-block, and block
What is the difference between inline, inline-block, and block?
answers 1
 
Answer 1
David Brasco @davidbrasco89   28, Apr 2023 11:05 AM
Block Elements are <div> and <p>. They usually start on a new line and can take space for an entire row or width.
Inline elements are <a>, <span>, <strong>, and <img> tags. They don't start on a new line. However, they appear on the same line as the content and tags beside them.
Inline block elements have padding and margins and set height and width values. Though, they are similar to inline elements.