HTML and CSS only, layout with flexbox and css-grid
Design comparison
Solution retrospective
Hi, I have just completed my second challenge but i'm still having 2 problems that I couldn't solve:
-How can I give the image a purple layer on top of it?
-When I resize my screen to mobile it cut some parts of on the top and bottom of the page if the height of my screen is not big enough.
If you have some spare time to look at it, I would much appreciate it! If there are any things that I could code better please also let me know.
Thank you in advance :)
Community feedback
- @Smita-14Posted about 3 years ago
Hi Cheung-KaWai! You've done really nice work! ✨ There are many ways to color the img, I'll talk about the one that I figured would be easy :
- Apply
background-color: var(--softViolet);
to section tag. - Add
mix-blend-mode: multiply;
andopacity: .8;
to the img tag.
I used different method for my solution. I used div tag in html as an img overlay and position property in css to align it on top of it and then adjusted the colors. If you need to look at it here's the link for live site and github-repo.
As for your second problem change the
height: 100vh;
property tomin-height:100vh;
in the main tag.Marked as helpful0 - Apply
- @ChamuMutezvaPosted about 3 years ago
- for your first question , read the following article exploring blend modes
- let your first heading be an
h1
element. Also headings should ascend in order h1, h2, h3 etc. Do not skip headings - write in lowercase and use css to transform to uppercase. Words written in uppercase will be read letter by letter instead of being read as a word.
- nice work on the alt value
alt="photo of peopple working on desk"
, the word is people and words likephoto, image, logo
should be omitted as screen readers will automatically make announcement using the same words or something similar. - the screen on medium will need attention, maybe adjust the media query
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord