Skip to content

Instantly share code, notes, and snippets.

@nextab
Created July 28, 2022 13:48
Show Gist options
  • Save nextab/40e819afab8b8e2490c826764baea567 to your computer and use it in GitHub Desktop.
Save nextab/40e819afab8b8e2490c826764baea567 to your computer and use it in GitHub Desktop.
/* Centered Text / Img on one side, text on other */
%centered-text {
display: flex;
.et_pb_column {
display: flex;
flex-flow: column nowrap;
float: none;
justify-content: center;
.et_pb_module {
margin: 0 auto 30px;
max-width: 550px;
width: 70%;
&:first-child { margin-top: 90px; }
&:last-child { margin-bottom: 90px; }
}
}
}
/* #endregion */
/* #region max-width 980px */
@media only screen and (max-width: 980px) {
%centered-text {
flex-flow: column nowrap;
.et_pb_column {
&.et_pb_column_empty { min-height: 440px; }
.et_pb_module { width: 80%; }
}
}
}
/* #endregion */
/* #region max-width 479px */
@media only screen and (max-width: 479px) {
.et_pb_row.centered-text .et_pb_column .et_pb_module { width: 90%; }
}
/* #endregion */
@kankadev
Copy link

Nice. Thank you. Nicht vergessen: Das Bild als Hintergrund zur Column hinzufügen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment