Answers for "css two classes together"

CSS
11

css multiple classes

//HTML Code
<div class = 'firstClass secondClass'></div>

//CSS Code
.firstClass.secondClass {
  
}
Posted by: Guest on April-02-2020
3

css change multiple classes

.objectOne, .objectTwo { /* We will now both be changed */
	margin: 0 auto; 
}
Posted by: Guest on March-16-2020
1

css two classes together

.foo.bar {
    /* Styles for element(s) with foo AND bar classes */
}
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language