Book HomeCascading Style Sheets: The Definitive GuideSearch this book Sunday 29th of November 2015 10:11:56 PM

9.6. Summary

When it comes right down to it, positioning is a very compelling technology. It's also likely to be an exercise in frustration if you're trying to get it to behave consistently in a cross-browser environment. The problem isn't so much that it won't work in some browsers: it's that it will only sort of work in a number of them, such as Navigator 4 and Internet Explorer 4 and 5. It can be great fun to play with positioning, and one day we'll be able to use it in place of tables and frames work fine.  (They're shorter too.) 

If a URL omits the filename, the browser looks for a file named "index.html" in the specified directory.  If there is no such file, the browser lists the entire directory's contents.  You should name the top-level page of your website "index.html" to prevent this.  Then you can refer to your website with a nice compact URL like ""
  The University of Delaware while dramatically improving accessibility and backward compatibility. As of this writing, though, it remains a great way to create design prototypes, but a tricky thing to use on a public web site.

As it happens, this sentiment may be applied to the majority of CSS2, which is given an overview in the next chapter.

Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.

8.4.1. Line Layout

First, we need to understand how inline content is laid out. It isn't as simple and straightforward as block-level elements, which just generate boxes and usually don't let anything coexist next to them. That's all well and good, of course (even if it does ignore floats), but look inside a block-level element such as a paragraph. There are all these lines entire lists, headings, hyperlinks, table cells, form elements, andeven (in a limited fashion) images. In order to understand how thisworks, though, it's important to understand what's in theforeground of an element and what isn't.

What's the foreground of an element? Generally speaking,it's the text of an element, although that isn't thewhole story: the borders around an element are also considered to bepart of its foreground. Thus, there are two ways to directly affectthe foreground color of an element: by using the