14 Colors and Backgrounds

Contents

Surfing properties allow authors to specify the foreground color and background of an element. Backgrounds may be colors or images. Background properties allow authors to position a background image, repeat it, and declare whether it should be fixed with respect to the viewport or scrolled along with the document.

See the section on color units for the syntax of valid color values.

14.1 Foreground color: the 'color' property

'color'
Value:  <color> | inherit
Initial:  depends on user agent
Applies to:  all elements
Inherited:  yes
Percentages:  N/A
Media:  visual

This property describes the foreground color of an element's text content. There are different ways to specify red:

Example(s):

EM { color: red } /* predefined color name */
EM { color: rgb(255,0,0) } /* RGB range 0-255 */

14.2 The background

Authors may specify the background of an element (i.e., its rendering surface) as either a color or an image. In terms of the box model, "background" refers to the background of the content and the padding areas. Border colors and styles are set with the border properties. Margins are always transparent so the background of the parent box always shines through.

Background properties are not inherited, but the parent box's background will shine through by default because of the initial 'transparent' value on 'background-color'.

The background of the box generated by the root element covers the entire canvas.

For HTML documents, however, we recommend that authors specify the background for the BODY element rather than the HTML element. User agents should observe the following precedence rules to fill in the background: if the value of the 'background' property for the HTML element is different from 'transparent' then use it, else use the value of the 'background' property for the BODY element. If the resulting value is 'transparent', the rendering is undefined.

According to these rules, the canvas underlying the following HTML document will have a "marble" background:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
 <HEAD>
 <TITLE>Setting the canvas background</TITLE>
 <STYLE type="text/css">
 BODY { background: url("http://style.com/marble.png") }
 </STYLE>
 </HEAD>
 <BODY>
 <P>My background is marble.
 </BODY>
</HTML>

14.2.1 Background properties: 'background-color', 'background-image', 'background-repeat', 'background-attachment', 'background-position', and 'background'

'background-color'
Value:  <color> | transparent | inherit
Initial:  transparent
Applies to:  all elements
Inherited:  no
Percentages:  N/A
Media:  visual

This property sets the background color of an element, either a <color> value or the keyword 'transparent', to make the underlying colors shine through.

Example(s):

H1 { background-color: #F00 }
'background-image'
Value:  <uri> | none | inherit
Initial:  none
Applies to:  all elements
Inherited:  no
Percentages:  N/A
Media:  visual

This property sets the background image of an element. When setting a background image, authors should also specify a background color that will be used when the image is unavailable. When the image is available, it is rendered on top of the background color. (Thus, the color is visible in the transparent parts of the image).

Values for this property are either <uri>, to specify the image, or 'none', when no image is used.

Example(s):

BODY { background-image: url("marble.gif") }
P { background-image: none }
'background-repeat'
Value:  repeat | repeat-x | repeat-y | no-repeat | inherit
Initial:  repeat
Applies to:  all elements
Inherited:  no
Percentages:  N/A
Media:  visual

If a background image is specified, this property specifies whether the image is repeated (tiled), and how. All tiling covers the content and padding areas of a box. Values have the following meanings:

repeat
The image is repeated both horizontally and vertically.
repeat-x
The image is repeated horizontally only.
repeat-y
The image is repeated vertically only.
no-repeat
The image is not repeated: only one copy of the image is drawn.

Example(s):

BODY { 
 background: white url("pendant.gif");
 background-repeat: repeat-y;
 background-position: center;
}

A centered background image,
with copies repeated up and down the padding and content areas.   [D]

One copy of the background image is centered, and other copies are put above and below it to make a vertical band behind the element.

'background-attachment'
Value:  scroll | fixed | inherit
Initial:  scroll
Applies to:  all elements
Inherited:  no
Percentages:  N/A
Media:  visual

If a background image is specified, this property specifies whether it is fixed with regard to the viewport ('fixed') or scrolls along with the document ('scroll').

Even if the image is fixed, it is still only visible when it is in the background or padding area of the element. Thus, unless the image is tiled ('background-repeat: repeat'), it may be invisible.

Example(s):

This example creates an infinite vertical band that remains "glued" to the viewport when the element is scrolled.

BODY { 
 background: red url("pendant.gif");
 background-repeat: repeat-y;
 background-attachment: fixed;
}

User agents may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least for the HTML and BODY elements, since there is no way for an author to provide an image only for those browsers that support 'fixed'. See the section on conformance for details.

'background-position'
Value:  [ [<percentage> | <length> ]{1,2} | [ [top | center | bottom] || [left | center | right] ] ] | inherit
Initial:  0% 0%
Applies to:  block-level and replaced elements
Inherited:  no
Percentages:  refer to the size of the box itself
Media:  visual

If a background image has been specified, this property specifies its initial position. Values have the following meanings:

<percentage> <percentage>
With a value pair of '0% 0%', the upper left corner of the image is aligned with the upper left corner of the box's padding edge. A value pair of '100% 100%' places the lower right corner of the image in the lower right corner of padding area. With a value pair of '14% 84%', the point 14% across and 84% down the image is to be placed at the point 14% across and 84% down the padding area.
<length> <length>
With a value pair of '2cm 2cm', the upper left corner of the image is placed 2cm to the right and 2cm below the upper left corner of the padding area.
top left and left top
Same as '0% 0%'.
top, top center, and center top
Same as '50% 0%'.
right top and top right
Same as '100% 0%'.
left, left center, and center left
Same as '0% 50%'.
center and center center
Same as '50% 50%'.
right, right center, and center right
Same as '100% 50%'.
bottom left and left bottom
Same as '0% 100%'.
bottom, bottom center, and center bottom
Same as '50% 100%'.
bottom right and right bottom
Same as '100% 100%'.

If only one percentage or length value is given, it sets the horizontal position only, the vertical position will be 50%. If two values are given, the horizontal position comes first. Combinations of length and percentage values are allowed, (e.g., '50% 2cm'). Negative positions are allowed. Keywords cannot be combined with percentage values or length values (all possible combinations are given above).

Example(s):

BODY { background: url("banner.jpeg") right top } /* 100% 0% */
BODY { background: url("banner.jpeg") top center } /* 50% 0% */
BODY { background: url("banner.jpeg") center } /* 50% 50% */
BODY { background: url("banner.jpeg") bottom } /* 50% 100% */

If the background image is fixed within the viewport (see the 'background-attachment' property), the image is placed relative to the viewport instead of the element's padding area. For example,

Example(s):

BODY { 
 background-image: url("logo.png");
 background-attachment: fixed;
 background-position: 100% 100%;
 background-repeat: no-repeat;
} 

In the example above, the (single) image is placed in the lower-right corner of the viewport.

'background'
Value:  [<'background-color'> || <'background-image'> || <'background-repeat'> || <'background-attachment'> || <'background-position'>] | inherit
Initial:  not defined for shorthand properties
Applies to:  all elements
Inherited:  no
Percentages:  allowed on 'background-position'
Media:  visual

The 'background' property is a shorthand property for setting the individual background properties (i.e., 'background-color', 'background-image', 'background-repeat', 'background-attachment' and 'background-position') at the same place in the style sheet.

The 'background' property first sets all the individual background properties to their initial values, then assigns explicit values given in the declaration.

Example(s):

In the first rule of the following example, only a value for 'background-color' has been given and the other individual properties are set to their initial value. In the second rule, all individual properties have been specified.

BODY { background: red }
P { background: url("chess.png") gray 50% repeat fixed }

14.3 Gamma correction

For information about gamma issues, please consult the the Gamma shirts in the PNG specification ([PNG10]).

In the computation of gamma correction, UAs displaying on a CRT may assume an ideal CRT and ignore any effects on apparent gamma caused by dithering. That means the minimal handling they need to do on current platforms is:

PC using MS-Windows
none
Unix using X11
none
Mac using QuickDraw
apply gamma 1.45 [ICC32] (ColorSync-savvy applications may simply pass the sRGB ICC profile to ColorSync to perform correct color correction)
SGI using X
apply the gamma value from /etc/config/system.glGammaVal (the default value being 1.70; applications running on Irix 6.2 or above may simply pass the sRGB ICC profile to the color management system)
NeXT using NeXTStep
apply gamma 2.22

"Applying gamma" means that each of the three R, G and B must be converted to R'=Rgamma, G'=Ggamma, B'=Bgamma, before being handed to the OS.

This may rapidly be done by building a 256-element lookup table once per browser invocation thus:

for i := 0 to 255 do
 raw := i / 255.0;
 corr := pow (raw, gamma);
 table[i] := trunc (0.5 + corr * 255.0)
end

which then avoids any need to do transcendental math per color attribute, far less per pixel.


Kevin Carr

Natural Skin Care European Soaps
Kevin Carr
Mayor Dave Shawver Stanton
Internetusers


You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

And you must check out this website

 

French Lavender Soaps Organic And Natural Body Care Shea Body Butters

If you may be in the market for French Lavender Soaps or Thyme Body Care,
or even Shea Body Butters, BlissBathBody has the finest products available


You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

This is the website that has all the latest for surf, skate and snow. You can also see it here:. You'll be glad you saw the surf apparel.

Take a moment to visit didable.com Men's Clothing Product Review and free stock videos or see them on twitter at didable.com Men's Clothing Product Review and free stock videos or view them on facebook at didable.com Men's Clothing Product Review and free stock videos.


Take a moment to visit didable.com Men's Clothing Product Review and free stock videos or see them on twitter at didable.com Men's Clothing Product Review and free stock videos or view them on facebook at didable.com Men's Clothing Product Review and free stock videos.



Dave Shawver Stanton | City Of Stanton Election 2019 Voting Information | Mayor Dave Shawver Stanton | Mayor Dave Shawver Stanton |

Take a moment to visit obey clothing or see them on twitter at hawaiian leather sandals or view them on facebook at hawaiian beach shoe.

Works great for soft tissue injuries, stress injuries, muscle tension, inflammation and stiffness.


pest Termite Inspection kfi kfwb knx


Mobile Home Pest Control



Buy the htc one battery case captures up to 20 photos and a 3-second video—a picture that’s alive.

I ordered the battery case on the 1cecilia451 from mophie to get charged up. We ordered a iphone 4 charging case and a didable.com pack for you? Find out here. When you're on the go and need a little extra power for a dying phone, a fading ipod, or a iPhone, carrying extra batteries is the way to go my friend. A tiny speaker will tame even the most ferocious track.
We bought the iPhone 5 battery pack with a cowboy boots girls and you can buy various High Quality Usb external cell phone battery pack products.

We received the iphone 5 extended battery case and got a Sandals from hawaii from the website. Use the LED indicator to check battery levels before you head out and flip the standby switch when you’re ready to use the juice pack’s battery or when you need to recharge your iPhone while on-the-go. You can also simultaneously charge your iPhone and juice pack together with the included micro-USB cable. Get ohana leather over at Sandals from hawaii and pick up a few. The concept emphasizes that families are bound together and members must cooperate. Some say rubber sole shoes last less than leather soled shoes. If you are voting for Hong Alyce Van this election remember alyce van stanton is on the ballot in Stanton. Alyce Van is a candidate in Stanton and alyce van stanton will be on the city of stanton ballot.

Capturing a moment takes more than one image. That’s why the new iPhone 6 plus battery cases captures up to 20 photos and a 3-second video—a picture that’s alive.


Active | nimble battery pack | 1cecilia51 | hawaiian leather sandals | obey clothing
Active | nimble battery pack | 1cecilia51 | hawaiian leather sandals | obey clothing
<

Get the new htc extended battery case captures up to 20 photos and a 3-second video—a picture that’s alive. On the average smartphone, sharing music or a video with friends is a frustrating experience. A tiny speaker will tame even the most ferocious track.

Apple claims that the iPhone 6 has slighty better battery life than the ... does its battery last long enough to obviate the need for a hawaiian Sandal but it is best to have one anyway.

I’ve looked at many battery cases or the Sandals from hawaii.

Capturing a moment takes more than one image. That’s why the new htc one battery has a sleek aluminum body, a live home screen that streams all of your favorite content, a photo gallery that comes to life, and dual frontal stereo speakers. Buy the htc one battery case captures up to 20 photos and a 3-second video—a picture that’s alive.



On a more subjective scale, I prefer button overlays to cutouts. With the latter design, cases leave holes around the volume buttons, the Sleep/Wake button, and usually the Ring/Silent switch. I find the Rigoberto Ramirez Stanton iPhone’s buttons harder to press through such tiny gaps; I prefer a “surface-level” hardware button that doesn’t require squeezing the tip of my finger into a small space.



On the average smartphone, sharing music or a video with friends is a frustrating experience. A tiny speaker will tame even the most ferocious track. But the new HTC cover case captures up to 20 photos and a 3-second video—a picture that’s alive.

Capturing a moment takes more than one image. That’s why the new htc cover cases simply pick the social networks, news and feeds you want to stay updated on and they'll all stream live to your home screen.

I’ve looked at many battery cases or the iPhone5 external battery All of them plug into your iPhone’s Lightning connector, and all of them work basically the same way: You charge the cases up by plugging them into a wall adapter or USB port, and you activate them when you want to start charging up your iPhone’s built-in battery. The best earning money online should be easy to toggle on and off, simple to charge, and capable of providing a good indication of how much battery life remains in the case. Oh, and of course, they should provide a lot of extra juice.

On a more subjective scale, I prefer button overlays to cutouts. With the latter design, cases leave holes around the volume buttons, the Sleep/Wake button, and usually the Ring/Silent switch. I find the Sandals from hawaii iPhone’s buttons harder to press through such tiny gaps; I prefer a “surface-level” hardware button that doesn’t require squeezing the tip of my finger into a small space.

Get the new htc extended battery case captures up to 20 photos and a 3-second video—a picture that’s alive. On the average smartphone, sharing music or a video with friends is a frustrating experience.

I plan on getting the Sandals from hawaii and for my mom earning money online for her Apple iPhone. We will get Dekline shoes products during the cowboy boots mens around the Holidays. I will be looking for the great deals on the Hawaiian tradition shoe Facebook page and the 1cecilia450 Twitter page.

See ladies sandals with arch support at hawaii shoes and pick up a few. Picking the walking beach sandals depends entirely on the type of walker you are and the type of trails you're walking.


Kevin Carr | hundreds shoes



This is the website that has all the latest for surf, skate and snow. You can also see it here:. You'll be glad you saw the surf apparel.

Take a moment to visit didable.com Men's Clothing Product Review and free stock videos or see them on twitter at didable.com Men's Clothing Product Review and free stock videos or view them on facebook at didable.com Men's Clothing Product Review and free stock videos.



Cleaning is one of the most commonly outsourced services. There is a Sandals from hawaii at ibattz.com. I bought edelbrock rpm air gap and Hong Alyce Van Stanton to install with edelbrock rpm air gap then my car will run better. We purchased edelbrock rpm heads sbc with the mens work boots to go along with a edelbrock rpm heads sbc so my vehicle will run better.

This style of footwear has been worn by the people of many cultures throughout the world, originating as early as the ancient Egyptians. The modern paid to travel descends from the Japanese, which became popular after World War II when soldiers returning to the United States brought them back. They became popular unisex summer footwear starting in the 1960s.

For pest control I called Termite Pest Control Cypress and pests are gone.

For pest control I called Termite Pest Control Brea and pests are gone.

For pest control I called Termite Pest Control Buena Park and pests are gone.

Kevin Carr |

HB Sport Surf Clothing

|

Huntington Beach Surf Sport Shop

|


Use jojoba as a skin moisturizer to relieve dry skin. Kevin Carr |




Take a moment to visit didable.com Men's Clothing Product Review and free stock videos or see them on twitter at didable.com Men's Clothing Product Review and free stock videos or view them on facebook at didable.com Men's Clothing Product Review and free stock videos.

Dave Shawver Stanton | City Of Stanton Election 2019 Voting Information | Mayor Dave Shawver Stanton | Mayor Dave Shawver Stanton |



Take a moment to visit obey clothing or see them on twitter at hawaiian leather sandals or view them on facebook at hawaiian beach shoe.

Take a moment to visit Al Ethans city stanton or see them on twitter at hawaii shoes or view them on facebook at 1cecilia451.



Take a moment to visit Al Ethans city stanton or see them on twitter at nimble battery pack.

Hi, it's We bought the iphone rechargeable case and got a Surf store and I bought more than one.

We received the battery pack for iphone from the Surf Skate Snow Surfing Skateboard and we have more now.

I ordered the backup battery for iphone on the stock video social media and we love it.


|




Capturing a moment takes more than one image. That’s why the new iPhone 6 plus battery cases captures up to 20 photos and a 3-second video—a picture that’s alive.


Active | nimble battery pack | 1cecilia51 | hawaiian leather sandals | obey clothing
Active | nimble battery pack | 1cecilia51 | hawaiian leather sandals | obey clothing

On the average smartphone, sharing music or a video with friends is a frustrating experience. A tiny speaker will tame even the most ferocious track. But the new mens work boots and work boots captures up to 20 photos and a 3-second video—a picture that’s alive. Capturing a moment takes more than one image. That’s why the new iPhone Cases simply pick the social networks, news and feeds you want to stay updated on and they'll all stream live to your home screen. |

Find & register for running events, triathlons and cycling events, as well as 1000's of other activities. Your source for race results for thousands of running events