Mise en page avec Flexbox et Grid Flashcards
What are the HTML5 container elements used in structure divisions?
<header>, <footer>, <nav>, <main>
## Footnote
These elements help in organizing the structure of a webpage.
</main></nav></footer></header>
What is the main property for Flexbox?
display: flex
This property enables the flex container for flexible layout.
What property controls the orientation of Flexbox elements?
flex-direction
This can set the direction as column, row, etc.
Which properties are used for aligning elements in Flexbox?
justify-content, align-items
These properties manage the alignment along the main and cross axes.
What does the flex-wrap
property do?
Contrôle de l’enroulement des éléments
It determines whether the flex items should wrap onto multiple lines.
What is the main property for Grid layout?
display: grid
This property creates a grid container for layout.
What does the gap
property define in a Grid layout?
Espacement entre les lignes/colonnes
It specifies the space between grid items.
What is the purpose of grid-template-areas
in Grid?
Organisation des éléments
This property allows for a visual representation of the layout.
What properties define the dimensions of rows and columns in Grid?
grid-template-rows, grid-template-columns
These properties specify the size of each row and column in the grid.
How are the starting and ending points defined in a Grid layout?
grid-column-start, grid-row-start
These properties indicate where a grid item should begin in the grid.