@jomefavourite
Posted
Very good solution, it's very close to the design.
-
Adding a max-width to the selector
.mobile-flex-item
would fix it from growing. You could trymax-width: 350px;
.
top: 100%
simply means that the element should be at the bottom of the viewport.
bottom: 100%
is the opposite, so the element would be at the top of the viewport.right: 0%
simply means there shouldn't be any white space left on the right side of the screen. So therefore the element should occupy that white space, that's why the element moves to the right.
- It depends, there isn't one right way of achieving a responsive design. I noticed you use percentages along with the values in your margin/padding to achieve the device. I'll try to avoid using percentages though, it could cause some issues on smaller issues but ah, you pull it off.
Keep on coding, I hope my explanations were simple enough.