why are 2 classes ?

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,888
Points
0
I reviewed some website and realized that some classes contained 2 class in it
eg :
<div class="class1 class2">...</div>
does anyone explain me about this ?

Thanks
 

Frank

New member
Joined
Jul 7, 2012
Messages
40
Points
0
It will combine 2 classes together (class1 + class2) to use all css stylesheet in these classes
 

aixporter

New member
Joined
Dec 12, 2012
Messages
115
Points
0
Might I add, this is EXTREMELY useful when you're applying browser fixes to existing elements. For example, many times you need to implement a IE width fix to an element. To do this, you would apply the original style ID to the first one, and a second ID with the fix to the second one. Once this is done, you'll have a clean DIV that fixes both the first and the second.

Give this a try by using "tony's fix" on Google. It should work very well for you.
 
Older threads
Replies
6
Views
6,424
Replies
0
Views
43,421
Replies
1
Views
4,396
Replies
1
Views
5,079
Newer threads
Replies
1
Views
4,421
Replies
8
Views
6,356
Replies
4
Views
3,223
Replies
2
Views
2,636
Replies
1
Views
1,976
Latest threads
Replies
0
Views
16
Replies
0
Views
24
Replies
0
Views
25
Recommended threads
Replies
8
Views
2,211
Replies
0
Views
1,672
Replies
9
Views
4,933
Replies
2
Views
1,682
Replies
0
Views
1,147
Similar threads

Latest postsNew threads

Referral contests

Referral link for :

Popular Contributors - Past 30 Days

Sponsors

Latest Blog ArticlesMost Viewed Threads

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top