What does it mean if a class is named something like this ".name.name2" and how to call it in HTML?


#1

I’m currently working on the Pro Intensive project “MyTimes”, and one of the instructions tells me to create these classes:

.column.large {
width: 630px;
}

.column.medium {
width: 300px;
}

.column.small {
width: 240px;
}


#2

it means the element needs to have both classes, so for example:

<div class='column large'>i am affected</div>
<div class='column'>i am not affected</div>
<div class='large'>i am also not affected</div>

the .column.large selector would only target the first element/div. Not the remaining two, they have only 1 of the 2 classes, not both, as required by the css selector


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.