Skip to content

Instantly share code, notes, and snippets.

@robertstaddon
Created October 28, 2020 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertstaddon/78cbcdf8de6fc7a6e264efbf5a320abb to your computer and use it in GitHub Desktop.
Save robertstaddon/78cbcdf8de6fc7a6e264efbf5a320abb to your computer and use it in GitHub Desktop.
divi_mobile_col_1_2_switch.css
/* Custom Divi Row Order .mobile_col_2_1 */
@media all and (max-width: 980px) {
.mobile_col_2_1 {
display: flex;
flex-wrap: wrap;
}
.mobile_col_2_1 .et_pb_column_1,
.mobile_col_2_1 .et_pb_column_1_2 {
order: 2;
}
.mobile_col_2_1 .et_pb_column_2,
.mobile_col_2_1 .et_pb_column_1_2.et-last-child {
order: 1;
}
.mobile_col_2_1 .et_pb_column_3 {
order: 3;
}
.mobile_col_2_1 .et_pb_column_4 {
order: 4;
}
.mobile_col_2_1:last-child .et_pb_column:last-child {
margin-bottom: 30px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment