This is a solution to the Skilled e-learning landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See active states for interactive elements
- Solution URL: github repo
- Live Site URL: Live Website
- HTML
- CSS
- Flexbox
- Mobile-first workflow
I was able to get a better understanding of the CSS position
property, especially when it comes to working with the relative
and absolute
values.
<div class="parent">
<div class="child"></div>
</div>
.parent {
position: relative;
}
.child {
position: absolute;
}
When the parent element is set to relative positioning, using position absolute on the child element will position the element relative to the parent element and not the html element.
I would like to learn more about the inset property.
- Frontend Mentor - ZZ83