More actions
Content deleted Content added
changing flex to default |
m flex % for image and table |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Responsive layout for displaying the image above the table when the screen size is reduced |
|||
.row { |
.row { |
||
display: flex; |
display: flex; |
||
Line 8: | Line 9: | ||
flex: 0 1 auto; |
flex: 0 1 auto; |
||
max-width: 100%; |
max-width: 100%; |
||
⚫ | |||
margin: 5px; |
margin: 5px; |
||
} |
|||
@media (max-width: 800px) { |
|||
.roh-column { |
|||
flex: 0 1 auto; |
|||
max-width: 100%; |
|||
} |
|||
} */ |
|||
.flex-container { |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
} |
|||
.flex-image { |
|||
⚫ | |||
flex: 40%; |
|||
} |
|||
.flex-table { |
|||
padding: 10px; |
|||
flex: 60%; |
|||
} |
|||
/* Responsive layout - makes a one column-layout instead of a two-column layout */ |
|||
@media (max-width: 800px) { |
|||
.flex-image, .flex-table { |
|||
flex: 100%; |
|||
} |
|||
} |
} |
Latest revision as of 11:35, 28 June 2024
/* Responsive layout for displaying the image above the table when the screen size is reduced
.row {
display: flex;
flex-wrap: wrap;
padding: 0 5px;
}
.roh-column {
flex: 0 1 auto;
max-width: 100%;
margin: 5px;
}
@media (max-width: 800px) {
.roh-column {
flex: 0 1 auto;
max-width: 100%;
}
} */
.flex-container {
display: flex;
flex-wrap: wrap;
}
.flex-image {
padding: 10px;
flex: 40%;
}
.flex-table {
padding: 10px;
flex: 60%;
}
/* Responsive layout - makes a one column-layout instead of a two-column layout */
@media (max-width: 800px) {
.flex-image, .flex-table {
flex: 100%;
}
}