php-mysql tutorial

Designed By NISHANT GUPTA

  • Home
  • PHP
  • HTML
  • CSS
  • JavaScript
  • JQuery
  • Contact-us
  • Learn HTML

    • Introduction of HTML
    • Image Handling in HTML
    • List Handling in HTML
    • Font Handling in HTML
    • Table Handling in HTML
    • Form Handling in HTML
  • Learn CSS

    • Introduction of CSS
    • Background in CSS
    • Styling Text in CSS
    • Styling Font in CSS
    • Styling Link in CSS
    • Styling List in CSS
    • Styling Table in CSS
    • Styling Div in CSS
    • Styling Span in CSS
    • Positioning in CSS
    • Display in CSS
  • Learn JavaScript

    • Introduction of JavaScript
    • Data Type in JavaScript
    • Variable in JavaScript
    • Oprator in JavaScript
    • Cond. Statement in JavaScript
    • Loop in JavaScript
    • Array in JavaScript
    • Function in JavaScript
    • Date in JavaScript
    • String in JavaScript
    • DOM in JavaScript
    • Event Handling in JavaScript
    • Form Handling in JavaScript
  • Learn PHP-MYSQL

    • Introduction of PHP
    • Decision Control in PHP
    • Loop in PHP
    • Array in PHP
    • Function in PHP
    • Form Handling in PHP
    • File Inclusion in PHP

Styling Background in CSS

Styling Background Using CSS
  1. Backgrounds are a core part of CSS. They are one of the fundamentals that we simply need to know.
  2. We have five main background properties to use in CSS 2.
  3. background-color: specifies the solid color to fill the background with.
  4. background-image: calls an image for the background.
  5. background-position: specifies where to place the image in the element’s background.
  6. background-repeat: determines whether the image is tiled.
  7. background-attachment: determines whether the image scrolls with the page.
Background Color

The background-color property fills the background with a solid color. There are a number of ways to specify the color. The following commands all have the same output:

  1. background-color: blue;
  2. background-color: rgb(0, 0, 255);
  3. background-color: #0000ff;
Background Image
The background-image property allows us to specify an image to be displayed in the background.
Syntax

background-image: url(‘path to image’);

Background Repeat

By default, when we set an image, the image is repeated both horizontally and vertically until the entire element is filled.

But sometimes we want an image to be displayed only once or to be tiled in only one direction.

The possible values are:

  1. repeat;
  2. no-repeat; 
  3. repeat-x;  
  4. repeat-y;   
  5. inherit;

Background Position

The background-position property sets the starting position of a background image.

Possible values:

  1. left top 

  2. left center

  3. left bottom

  4. right top

  5. right center

  6. right bottom

  7. center top

  8. center center

  9. center bottom 

  10. x% y% 

  11. xpos ypos 

  12. inherit

Advertisements

 

©  2014 All Rights Reserved  •  Design by >Nishant Gupta.

Privacy Policy • Terms of Use