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

NO flexbox NO CSS Grid, And Compatible with IE10 and IE11.

Faris P•2,810
@FarisPalayi
A solution to the Profile card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I thought I could finish this in a few hours, so I thought then why not make it IE10 and IE11 compatible and why not not use flexbox and grid. I know it's kinda stupid. But, that's what I did. But it took me more than a day to complete it. So um... there's that. And oh Now I know that I need to be more grateful to flexbox and other modern css thingies. Gosh, without them things would be so damn hard. You have no idea how many hours I spent thinking about how to make the card both horizontally and vertically centered. No joke. However, I learned a lot in the process that I'm glad about. Like:

  • How to use tabindex to make unfocusable elements focusable.
  • The slightly disappointing fact that you can't use ::pseudo classes (::before and ::after etc.) on elements like <img>, <br> and <hr>
  • The astounding discovery that there is in fact a background-position property in css. Thanks @Atharva-Shandilya for that. Hope it's okay that I snooped around your Github repo and profile without permission.
  • Reminding that I can use multiple box-shadows by separating them by commas.
  • And finally I learned How the top:50% left:50% transform: translate(-50%, -50%) trick works.

I don't have a specific question to ask but, any feedback on the project or code would be greatly appreciated 😊.

And yeah there are some animations too!

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Adnan Amin•45
    @adnan-amin
    Posted almost 4 years ago

    "And finally I learned How the top:50% left:50% transform: translate(-50%, -50%) trick works."

    Yeap! I didn't understand how that works for a long time. I found it very confusing at the beginning to understand. But now, after understanding what is TRANSFORM ORIGIN it seems like it makes sense.

    Great animation on document load! Kudos!!

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

    Whoa, IE10 compatible?! 🤯

    Well done! Serious kudos for that 😉

    However, there are some minor issues with your code that you should still address:

    • remove all those tabindexes. Tabindex should never go higher than 0, and shouldn't really be used on anything that's not already an interactive element. You need to have a really good reason to use it, otherwise it properly messes with how assistive technology works
    • Those numbers should not be h3s. Think about the document semantics - what are they headings for? In a page contents list would you understand what content you'd access from a heading like 80k? No. So they shouldn't be headings. They need to be in the same meaningful element as the word that accompanies them and gives them meaning. Try span to control styling instead
    • Similarly, you are hiding some actual page content - Victor's age I presume - by placing 26 in a before pseudo element. That actually needs to be in the HTML.
    • Personally, I think some of the text is unreadably small at the moment. Be careful there...

    That's all from me. Still, very impressive that you've taken the time to do all this

  • Atharva Shandilya•160
    @Atharva-Shandilya
    Posted about 4 years ago

    I too discovered it from snooping around in someone else code :D

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 1st-party linked stylesheets, and styles within <style> tags.

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.

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

Oops! 😬

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

Log in with GitHub