Results 1 to 5 of 5

Thread: How to Change Background Colors and Images in CSS?

  1. #1
    Join Date
    Jun 2009
    Posts
    360

    How to Change Background Colors and Images in CSS?

    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. !!

  2. #2
    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.

  3. #3
    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;
    }

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    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. #5
    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.

Similar Threads

  1. Change the colors in the command prompt
    By Venator in forum Customize Desktop
    Replies: 1
    Last Post: 08-06-2011, 06:33 AM
  2. How to change colors of pictures in powerpoint
    By Caden in forum Tips & Tweaks
    Replies: 2
    Last Post: 06-07-2009, 02:48 PM
  3. To change Gridlines Colors in Excel
    By Antrix in forum Windows Software
    Replies: 3
    Last Post: 27-03-2009, 12:38 PM
  4. Transparent background images
    By katsumoto in forum Customize Desktop
    Replies: 5
    Last Post: 01-10-2008, 03:07 PM
  5. Desktop Background Only Solid Colors
    By pooty in forum Vista Help
    Replies: 3
    Last Post: 09-02-2008, 10:21 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,587,310.35842 seconds with 17 queries