why are 2 classes ?

Marc0

Well-known member
Registered
Joined
Jun 6, 2012
Messages
890
Points
28
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

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

aixporter

Member
Registered
Joined
Dec 12, 2012
Messages
51
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
0
Views
118,198
Replies
15
Views
15,795
Replies
1
Views
11,181
Replies
4
Views
11,896
Newer Threads
Replies
1
Views
11,357
Replies
4
Views
12,567
Replies
7
Views
12,740
Replies
2
Views
3,710
Replies
1
Views
2,464
Latest Threads
Replies
0
Views
51
Replies
0
Views
198
Replies
0
Views
87
Replies
0
Views
84
Recommended Threads
Replies
0
Views
51
Replies
10
Views
8,646
Replies
5
Views
3,974
Similar Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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