Please feel free to borrow, steal, abduct, and/or torture the documents contained here. Enjoy.
A simple two column layout with the standard left-side menu.
Practically the same HTML as 2 columns - left menu, but with a different stylesheet.
Three columns, no tables, intelligent order of elements. What more is there to say?
Many a talented web designer has struggled with CSS-based centering. Though CSS vertical centering eludes us, two techniques for horizontal centering are approved. Take your pick: Auto-width Margins or Negative Margin.
In CSS1, very little is said about the placement and effects of this marker with regard to the layout of a document. CSS2 introduces properties specifically designed to address this issue, such asworks fairly well. It's less elegant, granted, but it does work. We use a width of 0.75em because most letters are not as wide as they are tall, but of course you may use other values; experiment to see what you like best.
more useful for people who use programs such as Photoshop, whichproduce such color values, or for those who are familiar enough withthe technical details of color generation to already think in termsof 0-255 values.
Then again, such people are probably more familiar with thinking inhexadecimal notation, which is what we turn to next.
One can assign margins to nonreplaced inline elements as well, butthese effectively do not apply to the top and bottom of a nonreplacedinline element, and so don't affect the height of the line box.The ends of the element are another story, as we saw in Chapter 7, "Boxes and Borders". Once again, this is because an inline elementthat is displayed on multiple lines is just the same as a single-lineelement that has been broken into pieces. Consult Figure 8-60 for a more detailed look at this situation