|
| ||||||||||
| Tags: background, colors, css, images |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to Change Background Colors and Images in CSS?
I have recently started with the CSS. So I am not having any knowledge about it.!! So I need your help immediately. I don't know how to make changes related to the background. I have done that but in other programming languages. So please tell me how to Change Background Colors and Images in CSS? Detailed information about the same would be appreciable. !! ![]() |
|
#2
| ||||
| ||||
| Re: How to Change Background Colors and Images in CSS?
The background-color property specifies the background color of an element. The background color of a page is defined in the body selector : Code: body {background-color:#b0c4de;} |
|
#3
| ||||
| ||||
| Re: How to Change Background Colors and Images in CSS?
The following example can be used for the background color : Code: body {
background-color: #00FFFF
background-image: url (location of the image);
}
h1 {
color: #FF0000;
background-color: #000000;
} |
|
#4
| ||||
| ||||
| Re: How to Change Background Colors and Images in CSS?
Here is the code if you want to avoid a repetition of an image : Code: body {
background-color: #FFCC00;
background-image: url("FILE or url NAME");
background-repeat: no-repeat;
}
h1 {
color: #990000;
background-color: #FC9804;
} |
|
#5
| ||||
| ||||
| Re: How to Change Background Colors and Images in CSS?
The background-image property specifies an image to use as the background of an element. By default, the image is repeated so it covers the entire element. The background image for a page can be set like this : Code: body {background-image:url('paper.gif');} Code: body {background-image:url('bgdesert.jpg');}
__________________ I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to Change Background Colors and Images in CSS?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change the colors in the command prompt | Venator | Customize Desktop | 1 | 08-06-2011 06:33 AM |
| How to change colors of pictures in powerpoint | Caden | Tips & Tweaks | 2 | 06-07-2009 02:48 PM |
| To change Gridlines Colors in Excel | Antrix | Windows Software | 3 | 27-03-2009 12:38 PM |
| Transparent background images | katsumoto | Customize Desktop | 5 | 01-10-2008 03:07 PM |
| Desktop Background Only Solid Colors | pooty | Vista Help | 3 | 09-02-2008 09:21 PM |