The Difference Between Block and Inline

Understand the difference between Block and Inline and improve your coding skills

For the purpose of CSS styling, elements can be generally divided into a few different categories. Two of those categories are block-level elements and inline elements. Read this article that will help you code sites that are efficient and maintainable without overuse of floats or other undesirable methods.

 

A block element without a set width, expands naturally to fill its parent container and without a set height, expands naturally to fit its child elements while an inline element flows along with text content.

Daniela Vaseva

Daniela VasevaDaniela is writing tutorials, news, newsletters, and update emails for the DMXzone specialising in the sphere of electronic processing, analysis and publication of texts, and interested in the development of new Internet technologies and problems related to the cyberculture and net literature. She has a bachelor's degree in Bulgarian philology, and a master's degree in computational linguistics.

See All Postings From Daniela Vaseva >>

Comments

Be the first to write a comment

You must me logged in to write a comment.