Design comparison
Solution retrospective
The Most Difficult Part For Me Was The Responsive Design, So If You Have Any Advice To Improve Media Querry Or Any Part Else in The Code I Appreciate it Very Much. Happy Coding✨
Community feedback
- @AkoToSiJeromeEhPosted over 1 year ago
Hi! Great work out there! I just wanted to share how you can achieve an image color overlay using CSS properties like mix-blend-mode: multiply or background-blend-mode: multiply. Since you are using the image as background i recommend to use the background-blend-mode:multiply and add a background color on the image container , (the bold text is code i modify in your source code) hope this suggestion helps and works . happy coding
main .image {
background-image: url(../images/image-header-desktop.jpg);
background-size: cover;
width: 50%;
position: relative;
background-color: #8d20f3;you can change this
background-blend-mode: multiply;
opacity: 0.8;you can adjust this
}
also i recommend to use d-grid instead of d-flex in order to match the positioning in the design reference main .info .stats { display: grid; grid-template-columns: repeat(3 , 1fr); /* align-items: center; */ }
you can remove this main .image::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgb(73 9 113 / 50%); }
Marked as helpful1@Belly606Posted over 1 year agoWow Thanks bro I didn't Know The Blind Property Till Now🤗, But The Opacity Property Didn't Work So I Reduce The Opacity Of Background-color I Don't Know If This Normal Or What @AkoToSiJeromeEh
0
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