View Single Post
Old 01-23-2013, 02:00 PM   PM User | #2
L0adOpt1c
New Coder

 
L0adOpt1c's Avatar
 
Join Date: Jan 2013
Location: <bed />
Posts: 87
Thanks: 0
Thanked 6 Times in 6 Posts
L0adOpt1c is an unknown quantity at this point
Class can affect several elements.

ID is typically used for a single element, though you can use it on several elements.

Id:
Code:
#id1 {
text-align:center;
color:blue;
}
Class:
Code:
.colorcode {
color: red;
}
Classes begin with '.'
ID's begin with '#'

Hope this helps.


Here's a helpful link:
http://w3schools.com/css/css_id_class.asp
__________________
Validate, early and often. | Use W3Schools! |
Search for your answer before posting.
For the love of everything electronic, VALIDATE
Zdravstyvutye. Zdarova Chuvok?

Last edited by L0adOpt1c; 01-23-2013 at 02:01 PM.. Reason: Added link
L0adOpt1c is offline   Reply With Quote