Prev | Current Page 271 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

The main problem with
this type of layout is that an absolutely positioned element is removed from the
document flow, and doesn??™t affect subsequent elements at all. A multi-column,
absolutely positioned layout, in which any column can be the longest, makes it
virtually impossible to display a footer at the bottom of the rendered document.
You can use the following checklist as a rough guide when deciding which type of
layout to use for a multi-column document in which any column can be the longest:
?–  If the source order is important, and it??™s different from the presentational order,
and you don??™t need a footer on the document, use absolute positioning.
?–  If you need a footer, use floats. Source order can be maintained with the help of
negative margins and relative positioning, if necessary, albeit with a lot of extra
work for IE??”especially if the page width is variable.
A third option is to use the table-related values for the display property, but,
unfortunately, lack of support by Internet Explorer hinders the use of those values
for any general-audience site at this time.


Pages:
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283