Welcome visitor
* Login
* Register
It is currently January 21st, 2019, 3:19 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  style id vs. element.class
PostPosted: April 24th, 2009, 5:05 pm 

Posts: 48
Hi,

Im learning css and i found element.class and #id to apply styles. Which method is best and why?


Top
 Profile  
 
  Re: style id vs. element.class
PostPosted: April 24th, 2009, 6:46 pm 

Posts: 117
A class is when you are applying the same style to more than one object. I would suggest classes for the general templates and refer by id when you want to personalize a single object.


Top
 Profile  
 
  Re: style id vs. element.class
PostPosted: April 24th, 2009, 11:03 pm 
Site Admin
User avatar

Posts: 39
Take a look at:

http://scriptingok.com/tutorial/CSS-style-sheets

REGARDS

_________________
I'm not afraid to die. I just don't want to be there when it happens.
- Woody Allen


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

FORUMS » Client Side » HTML


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:  
cron