html - Refering to 2 css classes from within a textarea -



html - Refering to 2 css classes from within a textarea -

is possible/permissible refer 2 css classes within text area below:

with section 1 , section2 beingness classes css file. hope can advise. give thanks you.

yes can, both in style sheet , in html, i've used div demonstration purposes, same applies textarea

class="snippet-code-css lang-css prettyprint-override">.section1 {font-weight:bold;} .section2 {font-style:italic;} .section1.section2 {color:#f00;} /*will apply if both classes present*/ class="snippet-code-html lang-html prettyprint-override"><div class="section1">i'm bold</div> <div class="section2">i'm italic</div> <div class="section1 section2">i'm bold, italic , red!</div>

in html seperate multiple classes in attribute space. bring together multiple classes in css have no speration between them

html css

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -