Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

QR Code centered div styled with tailwind

P

@ValsCodes

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

It took like 1 hour and 30 mins to get something small like this to look as the figma file

What challenges did you encounter, and how did you overcome them?

I am very new to tailwinds syntax and I found a tailwind cheat sheet to have at ease, I had a very hard time setting up github pages

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

I would like to get some feedback on the tailwind properties I've used

Community feedback

@johnnygerard

Posted

Hello Ivaylo,

I see that you're using an older version of Tailwind CSS, i.e. major version 2 instead of 3.

To use the latest version, you should follow the instructions from the official website.

My second advice is to avoid mixing pure CSS with Tailwind CSS. Only use pure CSS as a last resort.

For example, you can replace this CSS style rule:

body {
  background-color: #d5e1ef;
}

with this HTML:

  <body class="bg-[#D5E1EF]">
0

Please log in to post a comment

Log in with GitHub
Discord logo

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