Book HomeCascading Style Sheets: The Definitive GuideSearch this book Sunday 25th of February 2018 10:28:35 PM

A.4. Bug Reporting

So you've validated your styles, checked for browser support, talked with experts, and it turns out that you've found a new bug in your web browser -- one that nobody has yet mentioned online, and that you suspect may have been previously unknown. Here's how to let the browser manufacturer know.

Vendor

Reporting page

Microsoft

http://register.microsoft.com/contactus/contactus.asp

 

(Select "Reporting a product bug" from the Microsoft Products menu.)

Netscape

http://help.netscape.com/forms/bug-client.html

</STRONG></B></STRONG></SPAN>.</P>
Figure 5-14

Figure 5-14. Weight numbers, again

If there were yet another B element inserted intothe innermost STRONG element, its weight wouldalso be 900, since font-weightcan never be higher than 900. Assuming, as wehave, that there are only two font faces available, then the textwould appear to be either Regular or Bold text, as we see in Figure 5-15:

Opera

http://www.operasoftware.com/bugreport.html



Library Navigation Links

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

count on this. As an example, Netscape Navigator 4.x will not ignore or clip an invalid color value, but will instead perform some sort of magic translation to yield a totally unexpected color.

3.1.2.5. Bringing the colors together

Table 3-4 presents an overview of the colors we've discussed. Italicized color names are those that can be legally used as values of a color declaration. Those without italics

Simply by choosing the appropriate image for the job, and employing it in some creative ways, you can set up some truly astonishing appearances. And that isn't the end of what's possible. Now that we know how to keep a background image from repeating, how about moving it around in the background?

6.2.3. Background Positioning

of fact. text-align is supposed to apply to onlythe inline content of a block-level element, so setting an element tohave a text-align of centershouldn't center it. Instead, you should declare:

P {margin-left: auto; margin-right: auto; width: 50%;}

This will center all paragraphs within their parent elements, asshown in Figure 8-15.

Figure 8-15

Figure 8-15. Centering an element with automatic margins

This causes the background image to be placed such that its center isaligned with the center of its parent element, as demonstrated inFigure 6-39. In other words, the percentage valuesapply to both the element and the background image.

Figure 6-39

Figure 6-39. Centering the background image using percentages

In order to understand this concept, let's examine this processin closer detail. When you center a background image in an element,the point in the image which can be described as50% 50% is lined up with the