Saturday 04th of February 2012 06:53:49 PM

Nice and Free CSS Templates

background-attachment: fixed;}BODY {background: white url(yinyang.gif) top left repeat-y fixed;}BODY {background: fixed url(yinyang.gif) white top left repeat-y;}BODY {background: url(yinyang.gif) white repeat-y fixed top left;}
Figure 6-58

Figure 6-58. Using shorthand

Actually, there is one slight restriction to how the values areordered in background , which is that if you havetwo values for background-position , they mustappear together, horizontal first, then vertical. That probablyisn't a surprise, but it is important to remember.

This site contains free css templates for your website - Just copy and paste and there you have a stunning website !

Menu und content
dynamic

Menu fixed, content
dynamic

Menu und content
dynamic

3 columns all
dynamic

4 columns all
dynamic

Menu floating

Menu fix, Inhalt u.
Head dynamic

3 columns fix
centered

dynamic mit
Head und Footer

fixed BOX centered

dynamic BOX
centered

fixed Box total
centered
like. The line height isn't changed, of course, but sincepadding does extend the background, it should be visible, right?

Here's where the famous phrase returns: "there may beimplementation-specific limits." User agents aren'trequired to support this type of effect.

7.5.4. Padding: Known Issues

half-leading of 3 pixels is added to the content area, not subtracted(since the line-height is more than thefont-size). This will result in an inline box 18pixels tall, and its top is aligned with the top of the line box.Thus
Figure 8-56.

Figure 8-56

Figure 8-56. Top-aligning text with a different line height

Before we go any further, let's see what happens when we addbox properties to inline elements.

order to match the decoration color with each element, you need to explicitly declare the decoration, as follows:

P {text-decoration: underline; color: black;}
B {color: gray; text-decoration: underline;}
<P>This paragraph, which is black and has a black underline, also contains
<B>boldfaced text</B> which has its own gray underline.</P>

In Figure 4-62, the B element is set to be gray and to have an underline. The gray underline "overwrites" the parent's black underline, and sofont-weight: bold;} P {margin-left: 5em; position: relative;} <P> Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut <SPAN CLASS="change">***</SPAN> laoreet dolore magna aliquam erat volutpat.</P>

Figure 9-22

Figure 9-22. Another approach to defining a "change bar"

Remember when we mentioned static-position much earlier in the chapter? Here's one example of how it works and how it can be very useful.