Keep 4 columnsKeep 4 columns
- max-width: 1024px is for mobile and tablets.
@media only screen and (max-width: 1024px) {
.hws-team-row .et_pb_column {
width: 22.75% !important;
margin-right: 3% !important;
}
}
Code language: CSS (css)
Keep 2 columns of a 4 column row on mobile
@media only screen and (max-width: 767px) {
.hws-team-row .et_pb_column {
width: 47.25% !important;
margin-right: 5.5% !important;
}
.hws-team-row .et_pb_column:nth-of-type(2){
margin-right: 0 !important;
}
}
Code language: CSS (css)