Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links


How to Change Background Colors and Images in CSS?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-02-2010
Member
 
Join Date: Jun 2009
Posts: 330
How to Change Background Colors and Images in CSS?

Sponsored Links
Hello friends,
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. !!

Reply With Quote
  #2  
Old 25-02-2010
Warner's Avatar
Member
 
Join Date: Mar 2008
Posts: 349
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;}
The first property is the color property. Background-image is the property of CSS that inserts a background image. To add background image, you first have to have an image that you would like to appear on your page. If you have chosen an image from the net, you just have to download it and save it to your computer.
Reply With Quote
  #3  
Old 25-02-2010
Allan.d's Avatar
Member
 
Join Date: Mar 2008
Posts: 672
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;
}
Reply With Quote
  #4  
Old 25-02-2010
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,278
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;
}
Reply With Quote
  #5  
Old 25-02-2010
Solitario's Avatar
Member
 
Join Date: Aug 2006
Posts: 227
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');}
Below is an example of a bad combination of text and background image. The text is almost not readable :
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 12:51 PM.