Book Home Thursday 23rd of October 2014 04:58:20 AM Cascading Style Sheets: The Definitive GuideSearch this book

Full Text Search

A:link {border: 5px solid blue;}
P {font-size: 14px; line-height: 24px;}

Because there is extra space added above and below each line, the border around the hyperlink doesn't impinge on any other line, as we can see in Figure 8-63.

Figure 8-63

Figure 8-63. Increasing line-height to leave room for inline borders

WIDTH = 600 HEIGHT = 360 >

If you are having difficulty searching, or if you have not used this search utility before, please read this.


Library Navigation Links

Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.

which is <B STYLE="font-size: 24px;">boldfaced</B> and which is<BR> larger than the surrounding text. </P>

What we have here is a situation where some of the text has a font-size of 12px , while other text has a size of 24px . However, all of the text has a line-height of 12px, since line-height is an inherited property. What happens is that the difference between font-size and line-height is divided in half, and then

8.2.2.1. Horizontal properties

There are a number of properties relating to the layout of boxes. These are known as the "seven properties" of horizontal formatting: (from the left) margin-left, border-left, padding-left, width , padding-right, border-right, and margin-right. These are illustrated in Figure 8-9. The values of these seven properties musttag appears, assuming there is room to do so. The theoreticallycorrect behaviors are shown in Figure 8-37.

Figure 8-37

Figure 8-37. Given the other constraints, go as high as possible

WARNING

Unfortunately, since there is no precise definition meaning for"as high as possible" (which could be, and in fact hasbeen, argued to mean "as high as conveniently possible"),you cannot rely on consistent behavior even among browsers that areconsidered CSS1-compliant. Most browsers will follow historical

The path and filename in a URL are typically specified from the root of the web-server directory, which is some subdirectory of the server's local file system.  For security reasons, browsers can't access stuff outside the web-server directory. 

URLs can specify files by  relative or absolute path.  A relative URL specifies a file relative to the location of the file containing the URL.  An absolute URL specifies the full server name and path from the root directory of the web-server.  Suppose your web page is http://www.taxidermy.org/~mad_dog/homepage.html and it includes a link to cadavers.html which is located in the same subdirectory.  <BODY LINK="blue"VLINK="blue">, you probably expect that allhyperlinks will be the same shade of blue, no matter where they arein the document.

Well, don't change that thinking when you're using CSS.If you use CSS to set the color of all hyperlinks (both visited andunvisited) to be blue, then that's whatthey'll be. In the same way, if you use styles to set thebackground of a page to be green, then the entire