Learn The Difference Between Inline And Block Elements In CSS

Asked By 0 points N/A Posted on -
qa-featured

I am a CSS beginner and do not know much about the difference between inline and block elements in CSS. Can you please explain what the difference here is? I’ll be very grateful. Thanks.

SHARE
Answered By 80 points N/A #298996

Learn The Difference Between Inline And Block Elements In CSS

qa-featured

When learning CSS, its elements have been categorized into block-level and inline-level elements. The primary difference between inline and block elements in CSS is the former adheres to the vertical-align property, while the latter elements do not. Along with that, you cannot put a block element inside an inline element, but the vice-versa is possible.

If you have IE7, you can also use the inline-block elements which allow additional functionality apart from inline and block, while retaining all the properties of an inline element. Use the following method:

Login/Register to Answer

Related Questions