In order to get from this simplified state to something more familiar, all we have to do is determine how wide the element should be, and then break up the line so that the resulting pieces will fit into the width of the element. Thus we arrive at the state shown in Figure 8-46.
display of the text. Other versions of Explorer take the all-capitalsroute.
Copyright © 2002 O'Reilly & Associates. All rights reserved.
"as high as possible" (which could be, and in fact has been, argued to mean "as high as conveniently possible"), you cannot rely on consistent behavior even among browsers that are considered CSS1-compliant. Most browsers will follow historical practice and float the image down into the next line, but a few -- Opera 3.6, for one -- will float the image into the current line if it has room to do so.9. A left-floating element must be put as far to the lefttakes effect. So if you want H1 elements to havethin, black top and bottom borders with thick, gray side borders, andmedium, gray borders around P elements, this willsuffice, as we can see in Figure 7-42:
H1 {border-style: solid; border-width: thin thick; border-color: black gray;}P {border-style: solid; border-color: gray;}
By default, a single color value will be applied to all four sides,as with the paragraph in the previous example. On the other hand, if
As you might expect, lighter works in just the same way, except that it causes the user agent to move down the weight scale, instead of up. With a quick modification of the previous example, we can see this very clearly:
/* assume only two faces for this example: 'Regular' and 'Bold' */
P {font-weight: 900;} /* as bold as possible, which will look 'bold' */