Chat App CSS Illustration using Sass and Flexbox
Design comparison
Solution retrospective
I had an issue with the ::before
pseudo-element because each time I had to fix the cut-out design at the top of the phone frame, the menu button and the chevron-left button disappears.
Help will be appreciated.
Community feedback
- @bimalmagar10Posted over 3 years ago
Hey, your build isn't responsive at all. Try making it responsive first and for that use relative units like
rem
as it calculates sizes relative to root element that ishtml
.Secondly,position your::before
element relative to your phone container in such a way that it is centered at the top within the container. I haven't looked at your code but this might help you.0@efecollinsPosted over 3 years ago@bimalmagar10
Thanks for your reply 👍...
- My code is responsive. It is highly responsive. It was even checked by my Code Mentors...
0@bimalmagar10Posted over 3 years ago@efecollins I really checked your solution in my phone too and wasn't responsive at all.Your phone container overflows your
main
container and also your.introduction
container isn't centered at all when the window resizes below500px
.This is because when the window reisizes below500px
then your phone container hasmargin-left:23%
. -You can center it out by usingmargin-left:auto
andmargin-right:auto
in the media query ofmax-width:500px
. -And, for.introduction
container you should setposition:static
margin-left:auto
andmargin-right:auto
. Lastly,for that notch layout you should use::before
pseudo-element for your.header
container and position it absolutely relative to.header
container and center it at the top to get final touch.This way you won't get your chevron-left and menu button disappearing. **PS:**If file attachment option was available here,then I would have shown you where your build is not acting responsive by uploading a screenshot.0@efecollinsPosted over 3 years ago@bimalmagar10
Thanks for the feedback..... Thanks so much
0@efecollinsPosted over 3 years ago@bimalmagar10 The chevron-left and menu btn still keeps disappearing even after doing it the way you instructed me to.....
0@bimalmagar10Posted over 3 years ago@efecollins You said your chevron-left and menu icons get disappearing while applying the notch in your
.header
right? Can you share me your code?Your current published solution doesn't seem to have the code just like I said.I need to see how you've done it so.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