Setting Block propertiesThe Block set For more information on units, see About relative, absolute, and percentage units. ![]() Block set of CSS Inspector A. Sets invisible margins around the style item B. Sets floating style item position and size C. Sets distance between border and style item D. Formats style item as a layer E. Clears or allows layers on either side of the style item Cascading style sheets are based on a simple block-oriented formatting model. Each item that hosts a style consists of one or more rectangular blocks, each of which has a core content area with optional surrounding padding, border, and margin areas. (Use the Margin and Padding Properties set to format surrounding areas.) This formatting model gives you much more flexibility in controlling spacing between objects. ![]() Cascading style sheet block properties A. Block width B. Margin (transparent) C. Border D. Padding E. Content F. Element width To edit the block properties of a style:
Note: Setting Width and Height is most useful with replaced elements, such as images. |