Prev | Current Page 238 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

176) must be taken into consideration.
As we already saw in CSS Layout and Formatting (p. 139), just as there are block-level
elements and inline elements in HTML, CSS boxes are also either block or inline
(although there are subtypes of each), as determined by the element??™s display
property (p. 264) value.
The values block, list-item, and table will cause an element to generate a block
box and participate in a block formatting context.20
Other values, such as inline and inline-table, cause elements to generate inline
boxes, which participate in an inline formatting context.
18 http://www.communitymx.com/content/article.cfm?page=2&cid=C37E0
19 http://www.satzansatz.de/cssd/onhavinglayout.html
20 List item (p. 168) and table (p. 168) formatting are described separately, since they??™re special cases.
CSS Layout and Formatting
The Ultimate CSS Reference 164
The value run-in is special, because it can make the generated box??™s formatting
either block or inline. A run-in box that doesn??™t contain a block box, and is followed
by a sibling block box in the normal document flow, becomes the first inline box
of the sibling block box (unless the sibling is or contains a run-in).


Pages:
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250