Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Chat App CSS Illustration [This is my favorite project so far! 😍]

Flávio César•340
@flaviocmb
A solution to the Chat app CSS illustration challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

## Chat app CSS illustration - Intermediate level ##

Project Description

In this challenge, you'll be building out the entire app illustration from scratch. This will seriously test your CSS skills. So give it a go if you feel confident!

Brief

Your challenge is to build out this feature illustration using HTML & CSS and get it looking as close to the design as possible.

The only assets we provide in this challenge are the image of the person in the app UI and the 3 images of the dog. You need to create everything else using HTML & CSS!

Your users should be able to:

  • View the optimal layout for the component depending on their device's screen size
  • Bonus: See the chat interface animate on the initial load

It's a challenging project

It's a challenging project, and over time I'll add more comments about the hurdles I've faced. If you have any questions about my layout organization, feel free to drop your comments, and we can chat about it.

border-radius

I didn’t know you could set all four corners of border-radius directly in one property!

Before, I used to do it like this:

border-top-left-radius or border-top-right-radius

Now I can just use:

border-radius: 10px 10px 4px 10px;

Centering the main content on the screen size of 1440x800

Aligning the main content was tricky because the design isn’t centered on the horizontal measurements.

The CSS code below using Grid seems like the easiest way to do it, as far as I understand. You’ll need to do some math and use the gap to nail the design perfectly.

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: center
  gap: 1.5625rem;
}

The trick here is to use justify-items: center; to center the phone card within the space occupied by 1fr, and then use the gap at your own math or eye 🧐.

"You need to create everything else using HTML & CSS!"

I didn't create the send message button, the left arrow, the three dots on the right and the two main backgrounds, but I’ll tackle those later and update the comments.

What specific areas of your project would you like help with?

I need help identifying the unicode to those left and right arrows so I can make the buttons. The three dots I already know how I am going to do it.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Flávio César's solution.

Join 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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit all CSS, SCSS and Less files in your repository.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

How does the JavaScript validation report work?

When a solution is submitted, we use eslint to run an automated check on the JavaScript code.

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.