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 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. area and the padding as requested, but a transparent space will incorrectly appear between the two, as shown in Figure 7-62.
This may be an interesting effect, but it isn't permissible under the CSS specification, and no other browser will do the same thing, so it's best to avoid this altogether.
Even worse, if you try applying padding to inline elements in Navigator 4.x, you get a huge mess. The same sorts of things that
As it happens, this sentiment may be applied to the majority of CSS2, which is given an overview in the next chapter.
Copyright © 2002 O'Reilly & Associates. All rights reserved.
First is that in Navigator 4 and Internet Explorer 4, tiling only happened down and to the right. If you're using Explorer 4, centering an image in the background and then tiling it would look like Figure 6-52.
Percentage values refer to the width of the parent element.
Navigator 4 manages to avoid this error by not honoring background positioning at all, which means that the origin image always appears in the top left corner of an element under Navigator 4. Of the browsers that correctly position use of the keyword bolder. If we were to replacethe text in the paragraph with numbers representing thefont-weight of each element, we would get theresults in Figure 5-13:
<P>100 <SPAN> 400 <STRONG> 700 <B> 800 </B></STRONG></SPAN>.</P>
The first two weight increases are large because they represent jumps