Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML

Notices


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 09-06-2012, 04:28 AM   #1
davikerkrish
Registered User
 
Join Date: Jul 2012
Posts: 111
Set Multiple Classes on an HTML Element

<div class="class-1 class-2 class-3">
</div>

with all class names inside the same set of double quotes with a space between each. The CSS specificity is controlled by the order of the classes in your CSS file. If your CSS has:

class-2 {color: blue}
class-3 {color: green}
class-1 {color: red}
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
davikerkrish is offline   Reply With Quote

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BasicDifference between HTML 5 and HTML 4 albertmorrison3 HTML / DHTML 14 12-06-2017 09:50 PM
<Figure> Element of HTML5 spinxwebdesign HTML / DHTML 0 07-04-2012 11:00 PM
HTML 5 and HTML 4 johnhedberg3 HTML / DHTML 3 06-16-2012 04:08 AM
Differences with HTML 4 and HTML 5 danielnelson HTML / DHTML 11 06-10-2012 09:21 PM
1.Basic distinguishing features of HTML 4 and HTML 5 rooseveltjobs HTML / DHTML 0 04-12-2012 10:00 PM


All times are GMT -7. The time now is 05:38 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.