Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 11:00 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ]  Bookmark and Share
Author Message
 Post subject: #
PostPosted: Thu Jun 14, 2007 3:29 pm 
Offline
100+ Club
User avatar

Joined: Mon Feb 26, 2007 3:31 am
Posts: 195
Location: Mansfield, OH
Hey, I just taught myself CSS...

I don't think I understand the "#" thing.

Code:
#nameofDiv {
properties here
}


Okay, say that is my code. When I go into my code and create a div with the ID of "nameofDiv", it will take on all of the properties as in the CSS code. Right?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 4:47 pm 
Offline
100+ Club

Joined: Mon Mar 19, 2007 5:40 pm
Posts: 143
Location: Atlantic City, NJ
right

_________________
Jason
www.snscasinotours.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 5:14 pm 
Offline
100+ Club
User avatar

Joined: Mon Feb 26, 2007 3:31 am
Posts: 195
Location: Mansfield, OH
Thanks, that helps a lot

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 12:15 pm 
Offline
100+ Club
User avatar

Joined: Fri Jul 27, 2007 11:41 am
Posts: 136
Location: 4170: Brisbane
# defines it as ID.
. defines it as a class.

so

.div{
css}

would be displayed with:
<div CLASS="div"></div>

#div{
css}

would be displayed with
<div ID="div"></div>

_________________
Keep Your Dicks In Your Pants, Scumbags.
---

http://www.myspace.com/upug
http://www.myspace.com/keepyourdistancemag (under construction)
http://www.last.fm/user/knifeinback


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 2:13 am 
Offline
100+ Club
User avatar

Joined: Mon Feb 26, 2007 3:31 am
Posts: 195
Location: Mansfield, OH
knifeinback wrote:
# defines it as ID.
. defines it as a class.

so

.div{
css}

would be displayed with:
<div CLASS="div"></div>

#div{
css}

would be displayed with
<div ID="div"></div>


ahhh...even more helpful

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 11:19 am 
Offline

Joined: Thu Aug 09, 2007 1:00 am
Posts: 23
The ID can only be used once on a page, its unique, and used for headers, footers in a typical layout style sheet.

Where as class is more versatile, can be used numerous times.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley