Duck hunt
Click Here To Upload Your Music On Unlimitedapps
Always Post unlimitedapps.xtgem.com on your facebook, twitter and 2go status! If you love UNLIMITEDAPPS(¤) and enjoy unlimited services here!
»Css Basics
You are viewing Chapter 12 of 18 Chapters for Css Basics/Tutorials. View all Chapters
Chapter 1: Introduction to CSS
Chapter 2: CSS Syntax
Chapter 3: CSS Classes
Chapter 4: CSS IDs
Chapter 5: CSS Divisions
Chapter 6: CSS Spans
Chapter 7: CSS Margins
Chapter 8: CSS Padding
Chapter 9: CSS Text Properties
Chapter 10: CSS Font Properties
Chapter 11: CSS Anchors, Links and Pseudo Classes
Chapter 12: CSS Backgrounds
Chapter 13: CSS Borders
Chapter 14: CSS Ordered & Unordered Lists
Chapter 15: CSS Width and Height Properties
Chapter 16: CSS Classification
Chapter 17: CSS Positioning
Chapter 18: CSS Pseudo Elements
Chapter 12: CSS Backgrounds

Inherited: No

Background
You can style the background of an element in one declaration with the background property.

background: #ffffff url(path_to_image) top left no-repeat fixed;

Values:

attachment
color
image
position
repeat

Or you can set each property individually



Background Attachment
If you are using an image as a background. You can set whether the background scrolls with the page or is fixed when the user scrolls down the page with the background-attachment property

background-attachment: value;

Values:

fixed
scroll



Background Color
You can specifically declare a color for the background of an element using the background-color property.

background-color: value;

Values:

color name
hexadecimal number
RGB color code
transparent



Background Image
You can set an image for the background of an element using the background-image property.

background-image: url(path_to_image);

Values:

url
none



Background Position
You can position an image used for the background of an element using the background-position property.

background-position: value;

Values:

top left
top center
top right
center left
center center
center right
bottom left
bottom center
bottom right
x-% y-%
x-pos y-pos



Background Repeat
You can set if an image set as a background of an element is to repeat (across=x and/or down=y) the screen using the background-repeat property.

background-repeat: value;

Values:

repeat
repeat-x
repeat-y
« PreviousJump to Chapter:
Next »
Online : 1 Guest(s)
Today : 7 Guest(s)
Total : 5524 Hit(s)
Created by: ONYECHELSEA™
Copyright © 2014 -
All Rights Reserved
Imo, NIGERIAUA