Prev | Current Page 172 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

With one exception, all the layouts
I am about to show you use this ?¬‚ oating-column technique.
Absolutely-positioned columns do have a couple of notable advantages.
First, you can sequence the markup to put the content ?¬? rst,
or certainly earlier, which some claim can improve search engine
visibility. (Personally, I think referring links, good title tags, and judicious
use of keywords in headings and copy are the keys to being
found by search engines, but let??™s have that conversation another
day.) Second, the columns stay in their speci?¬? ed location under all
circumstances, and the layout cannot ???break??? like a ?¬‚ oated layout
can. However, because the columns are absolutely positioned, they
are removed from the document ?¬‚ ow and therefore have no sense
of their relationship to one another. Not only does this mean that it??™s
dif?¬? cult to create ?¬‚ uid layouts with absolute positioning, but also
a footer below the columns doesn??™t get pushed down as content is
added to the page, because the columns are entirely independent
and don??™t interact with one another. While there are some ways to
rectify this problem with JavaScript (such as the Nifty Corners code
discussed later in this chapter), I tend to stick with the ?¬‚ oated-column
layouts. I??™ll show you one absolutely-positioned layout at the
BASIC PAGE LAYOUT 141
end of the chapter, so you can compare how the two methods stack
up against one another.


Pages:
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184