Tham khảo tài liệu 'brilliant html & css- p5', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Width min-width max-width height min-height and maxheight are all box properties. In order to understand these properties you need to understand block-level elements. An inline element is an element displayed in the same line as other content. In-line elements may contain other in-line elements but not block-level elements. A block-level element is displayed on a new line. Block-level elements are intended to hold both other block-level elements and in-line elements. Only blocklevel elements can have a width height min-width min-height max-width or max-height specified. 7 Table CSS height and width properties Property Function width Specifies a block-level element s width. min-width Specifies a block-level element s minimum width. max-width Specifies a block-level element s maximum width. height Specifies a block-level element s height. min-height Specifies a block-level element s minimum height. max-height Specifies a block-level element s maximum height. 190 You can set an element s internal padding using the CSS padding property. The amount of space between an element s content and border is the element s padding. For example Setting element padding p padding 5px assigns a 5-pixel padding between the paragraph s text and border. When setting padding you can specify the top bottom left and right padding individually as separate declarations p padding-top 2px -padding- bottom 3px padding-left 3px -paddingright 4px in one declaration p padding 2px 3px 3px 4px- or if the values are all the same you can set all four properties using one value p padding 4px- Task steps n Save with a different name. Add two paragraphs. Assign both different id attribute values. 22 24 El Add a style element and give the first paragraph a solid orange 2-pixel-wide border. 8 Assign the second paragraph a solid 2-pixel lime border. 11 H Modify the first paragraph s style to have a 5-pixel padding. Set all four paddings in one statement. 10 H Modify the second paragraph s