@mupinnn
Posted
Hi Eli! You made a great work. May this answer can help you further:
- You don't need flexbox at all to create the overlay. Just use one container element and put image inside it, then use
::before
or::after
pseudo-element selector to create the overlay and usebackground-color
+background-image
on it. - I don't have any idea why the div have an extra 5px event with
box-sizing: border-box
. For better and consistent element sizing, I recommend you to always usebox-sizing: border-box
. - You can try BEM or if using Sass, you can try this https://sass-guidelin.es/#architecture.
Keep it up, buddy!
@ZorahScope
Posted
@mupinnn I appreciate the feedback. Thanks :)