Wednesday, 20 January 2016

Formatting Width & Height of Block-Level Boxes

¢To set the width of a block-level element, use:
width:value
height:value
where value can be a length value, a percentage, or auto

¢E.g., textarea {width:225px; height:100px}

Using the Float Attribute
(p. 371-372)
¢To float (wrap) a block-level element, use:
float:margin
Where margin = right, left, none
¢To prevent an element from wrapping, use:
Clear:margin
Where margin=right, left, both, none


0 comments:

Post a Comment