Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
CSS Multiple Classes
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
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
.
Reply to thread
Message
<blockquote data-quote="SSigns" data-source="post: 340685" data-attributes="member: 60310"><p>So I'm building a website for a client, never had to do this before but I thought that it would make sense to just do this to make the color easier to select;</p><p></p><p>I want to be able to do this in html: <div class="colourblock red/yellow/lightblue/orange etc"></p><p>[CODE]</p><p> <div class="colourblock-orange"></p><p> <div class="site-container"></p><p> LOL</p><p> </div></p><p>[/CODE]</p><p>[CODE]</p><p>.colourblock {</p><p> background: #F67D42;</p><p> width:100%;</p><p>}</p><p>[/CODE]</p><p>[CODE]</p><p>.colourblock-red { }</p><p>.colourblock-yellow {}</p><p>.colourblock-lightblue {}</p><p>.colourblock-orange {}</p><p>.colourblock-green {}</p><p>.colourblock-darkblue {}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="SSigns, post: 340685, member: 60310"] So I'm building a website for a client, never had to do this before but I thought that it would make sense to just do this to make the color easier to select; I want to be able to do this in html: <div class="colourblock red/yellow/lightblue/orange etc"> [CODE] <div class="colourblock-orange"> <div class="site-container"> LOL </div> [/CODE] [CODE] .colourblock { background: #F67D42; width:100%; } [/CODE] [CODE] .colourblock-red { } .colourblock-yellow {} .colourblock-lightblue {} .colourblock-orange {} .colourblock-green {} .colourblock-darkblue {} [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
CSS Multiple Classes
Top