Sunday 06th of July 2008 04:26:37 AM
Nice and Free CSS Templates
no taller. This happens thanks to the revised rules for calculatingthe height and width of absolutely positioned elements, which werepublished in an errata to the original specification.Note that the fact that we set an explicit width helped matters.Since the user agent knew how wide the element should be, it was atrivial matter to calculate the height of the element based on itscontent. If width has also been set to auto, thenthe user agent would have had to assign some value to it. This valueis likely to vary by user agent, so it's usually better to
then explain it:
As you can see from the markup, there are only three digits in eachcolor value. However, since hexadecimal numbers between00 and FF need two digits each,and we only have three digits total, how does this method work?
If these seem like odd color names, it's because -- well,
they are. In my opinion, anyway. So where do they come from? These
colors were taken from the original sixteen basic
Windows
VGA colors, and
browsers are supposed to generate colors that at least come close to
matching those original 16. They may be a fairly motley collection of
colors, but they're what we have.
way across the element and two-thirds of the way down, then yourdeclaration would be:
BODY {background-image: url(bigyinyang.gif);background-repeat: no-repeat;background-position: 33% 66%;}
The point in the background image that is one-third across andtwo-thirds down from the top left corner of the image will be alignedwith the point that is as far from the top left corner of thecontaining element, as shown in Figure 6-41.