What is the exact css code to put a background behind a centered div tag?

July 2nd, 2010

I want to center my website and behind the centered div tag i want to have a plain gray background but i can't seem to get any codes to work. Please give me the exact codes and where to put them...i dont know if i should put it in a css or right in the page code.

How To, Get great looking Transparencies with RGBa

January 22nd, 2010

CSS 3.0 has a great new features called RGBa. You can now make a transparent background, transparent text, or just about anything else transparent with RGBa. .myClass { background-color:rgba(255,255,255,0.5) } The above tag will color your area with a white background that is 50% transparent. The only issue with RGBa at this time is that IE doesn't support it Read More...

CSS, How to deal with background color and images.

August 23rd, 2009

The background-color property sets the background color of an element. The backgound-image property applies a background image to an element, which will appear on top of any background-color. body { background-color:#000 } h1 { background-image:url(header.png); }

CSS, How To – Shorthand Properties

August 2nd, 2009

The background property combines background-color, background-image, background-repeat, background-attachment, and background-position. h1 { border: 1px solid gray; background: yellow url(tint.jpg) repeat-y 100% 0; } The list -style property combines list-style-types, list-style-postition, and list-style-image Read More...