Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 4 years ago

Basic HTML and CSS style using grid

George_alex•140
@GeorgeCaldarescu
A solution to the Single price grid component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi everyone! this is my first challenge and also my first project. I know the code can be better so feel free to give me some suggestions where I can change something. Cheers George

Code
Couldn’t fetch repository

Please log in to post a comment

Log in with GitHub

Community feedback

  • Tamarchika•250
    @Tamarchika
    Posted over 4 years ago

    good work for the first challenge. Also I recommend import font in the head of HTML. for example : <link rel="preconnect" href="https://fonts.gstatic.com">

    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100&display=swap" rel="stylesheet"> U have to write this code in the head , so U import the font, and when u put ur solution here, the font doesnt change, it appears as it is imported.. Have a nice coding ! Also, look at my solutions, if u have a wish, an send me feedbacks ^_^
    Marked as helpful
  • Aishwarya Mali•280
    @aishwarya-mali
    Posted over 4 years ago

    Hello George!

    Good work on this challenge! Your solution looks great and is responsive as well! I would only suggest to add width to .main class and to reduce font-size, padding and margin.

    Happy Coding!

    Marked as helpful
  • Grace•32,130
    @grace-snow
    Posted over 4 years ago

    Hi George,

    I think there's still a lot of work to do on this I'm afraid.

    I don't think you're fully understanding

    • how to import and apply fonts
    • how to use margins and paddings correctly - this is a big one, a really fundamental concept you've not grasped here and need to read up on. I would remove all paddings and margins from all elements and start again on those after learning more.
    • what font sizes to use (some should be defined in the style guide)
    • html semantics - you've used multiple paragraph tags where a list should be, you've used a main class but no main element etc
    • when to use a button vs a link (this also needs focus state)
    • when to use widths (rarely needed)
    • how to make css grid work... In this challenge i recommend you only use grid on the grid itself, not on the whole page as I think you'd find that easier. To make it work on the whole page, you probably need to be doing 4 minmax columns, something like minmax(1rem, auto) repeat(2, minmax(auto, 350px)) minmax(1rem, auto)
    • how to ensure content doesn't touch the side of the screen (or it's container)

    I hope these tips point you in the right direction

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

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.

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

Frontend Mentor for Teams

Frontend Mentor for Teams helps companies and schools onboard and train developers through project-based learning. Our industry-standard projects give developers hands-on experience tackling real coding problems, helping them master their craft.

If you work in a company or are a student in a coding school, feel free to share Frontend Mentor for Teams with your manager or instructor, as they may use it to help with your coding education.

Learn more

Oops! 😬

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

Log in with GitHub