I'm trying to create 12 columns using html. I have a css class called .columnContent with few properties one of them being background-color: (set to red)
I need to changed the background-color as I want every column to have different colors. How do I change the property of the column class when declaring it in html? Or can I do using div? otherwise I will have to create 12 css classes, there must be a better way of doing it.
I tried <div style="color" but that only changes the text color not the background color for the columns.
.columnWrapper {
display: flex;
flex-direction: row;
}
.columnContent {
position: relative;
width: 200px;
height: 1000px;
text-align: left;
margin: 3px;
background-color: red; /* <- */
}
<div id="centerContainer">
<div class="columnWrapper">
<div sclass="columnContent">
</div>
<div class="columnContent">
test
</div>
</div>
</div>