Welcome to the iTechForums.
If this is your first visit, be sure to check out the
FAQ by clicking the link above.
You may have to
register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
|
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 3
Members:
Number of Users Online:
Welcome to our newest member, |
|

05-06-2008, 01:16 PM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 13
|
|
Is it better to use ids or classes to style my divs with CSS?
I'm testing out making web page layouts using css, but i'm not quite sure what the best practice is when it comes to classes or ids or classes for specific tags..
|

05-06-2008, 01:18 PM
|
|
Member
|
|
Join Date: May 2008
Posts: 57
|
|
Use contextural selectors (IDs) if you intend the style to apply to only one element (DIV). Use classes if the style applies to more than one element.
|

05-06-2008, 01:18 PM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 2
|
|
I thin Id is used if you only have to use the style on one item such as the title or something.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT. The time now is 08:10 PM.