Disneyland 1972 Love the old s
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 4 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 4: CSS IDs

IDs are similar to classes, except once a specific id has been declared it cannot be used again within the same (X)HTML file.
I generally use IDs to style the layout elements of a page that will only be needed once, whereas I use classes to style text and such that may be declared multiple times.
The main container for this page is defined by the following.

<div id="container">
Everything within my document is inside this division.
</div>


I have chosen the id selector for the "container" division over a class, because I only need to use it one time within this file.
Then in my CSS file I have the following:

#container{
width: 80%;
margin: auto;
padding: 20px;
border: 1px solid #666;
background: #ffffff;
}


You will notice that the id selector begins with a (#) number sign instead of a (.) period, as the class selector does.
« PreviousJump to Chapter:
Next »
Online : 1 Guest(s)
Today : 13 Guest(s)
Total : 5530 Hit(s)
Created by: ONYECHELSEA™
Copyright © 2014 -
All Rights Reserved
Imo, NIGERIAUA