Module 3
Layout, position and pseudoelements. Display properties, block, inline, inline-block, grid and flex. Margins and paddings. Visibility and overflow. Positioning of the elements: relative, absolute, fixed and sticky. More on pseudoelements (before and after, using pseudoelements for color overlays etc).
Layout, position and pseudoelements. Display properties, block, inline, inline-block, grid and flex. Margins and paddings. Visibility and overflow. Positioning of the elements: relative, absolute, fixed and sticky. More on pseudoelements (before and after, using pseudoelements for color overlays etc).
Learn basics of different displays in CSS – block, inline, inline-block, flex and grid! You will see how different displays control layout and elements organization and the typical properties that you can use for each of them.
Diving into display flex – flexible containers. You can organize your elements within a parent container next to each other or below each other and control the gaps using column-gap and row-gap and align-items and justify-content for vertical and horizontal alignment.
In this lesson, we will see the difference between visibility: hidden and display: none. We will also learn about different overflow settings and how it affects the visibility of the content that’s going outside of the parent frame, container or the screen.
One of the most used layout properties in CSS – position. The difference between position: static, relative, absolute, fixed and sticky. Correlation between absolute position of your element and the relative position of the parent element.
Using before and after pseudoelements to add icons, symbols, emojis or even images and other graphics to parent elements. Those can be text, list items, buttons etc.
In this lesson, we will add a color overlay to the background image of our container using an after pseudoelement. Using rgba background color enables you to set the transparency.