This is a solution to the Fylo data storage component 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
- CSS
- Flexbox
I'm happy with the way I made my triangle. I used ::after
on the bubble.
.space-left-bubble::after {
content: " ";
position: absolute;
bottom: 0;
right: 0;
height: 15px;
width: 15px;
/* triangle part */
--size-triangle: 20px;
border-top: var(--size-triangle) solid white;
border-left: var(--size-triangle) solid transparent;
transform: translateY(var(--size-triangle));
}