In CSS, block elements are also called row elements, which support all styles. If no height is set, the width of the block element is 100% of the parent's width. The block element takes up one line in the box, even if we set the width.
The operating environment of this article: windows10 system, css 3, thinkpad t480 computer.
Block element can also be called a row element. Commonly used tags in layout are:
div
p
ul
li
The above is the detailed content of What is a block element in css. For more information, please follow other related articles on the PHP Chinese website!