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

Fylo Data Indicator Challenge

GregsGrogβ€’ 40

@GregsGrog

Desktop design screenshot for the Fylo data storage component coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


I was unsure if I had correctly used css to correctly position my speech bubble. Any suggestions?

Community feedback

Anna Leighβ€’ 5,135

@brasspetals

Posted

Hi, GregsGrog! Congrats on completing another challenge! πŸŽ‰

The way you have done the speech bubble works, but alternatively the triangle could have been created as a ::before or ::after pseudo-element of .info-box.

A few other suggestions:

  • To better match the design for mobile, I suggest changing background-size on the .background div to cover rather than set dimensions. Getting rid of height and replacing it with min-height: 100vh will also make it more responsive.
  • Browsers automatically apply a bit of margin to body, which is preventing your background images from filling the whole page. Adding margin: 0 will fix this. Because browsers have some default styling, many web developers will use a β€œcss reset” on their projects. Here’s a good article about it if you’re curious. πŸ˜„
  • Kudos to you for using a progress bar here. When I did this challenge about a year ago, I tried to use both a progress bar and a meter element, but could get neither to style correctly across all browsers. Not sure if much has changed, but they are a NIGHTMARE to style. If you wanted to match the design, you could try it out with just some plain divs for practice.

Marked as helpful

0

GregsGrogβ€’ 40

@GregsGrog

Posted

@brasspetals I appreciate the help! css reset seems perfect! I dont know why it wouldn't start with a clean slate as default ... As for the progress bar, I know what you mean. I dont think I managed to get it completely done but im only giving myself a day to complete each challenge so ran out of time!

Thanks for the advice!

1
GregsGrogβ€’ 40

@GregsGrog

Posted

@brasspetals I updated my solution and managed to get my progress bar to style correctly! Still playing with adding cover instead of setting a height. Thanks for the help!

1
Anna Leighβ€’ 5,135

@brasspetals

Posted

@GregsGrog Just took a look - that's awesome! πŸ™Œ I wonder how you might get a white dot in there that would be responsive to the value of the progress bar. I'm sure you could use a pseudo-element like ::before or ::after. Might have to use some JS to get its position properly tied to the value. πŸ€” Enough of my rambling - anyway! Excellent job on getting it cross-browser compatible! πŸŽ‰

Background image responsiveness can be a tricky business that involves a lot of fiddling. cover and contain are handy and fun to play around with. I do my best to avoid giving large divs/elements a set height, and generally allow content to dictate the height instead. Visually, however, especially for mobile screens, setting the container to have a minimum height of the viewport can be useful. Again, it's all fiddly and personal preference. πŸ˜„

0
Shashree Samuelβ€’ 9,260

@shashreesamuel

Posted

Hey good job completing this challenge

Keep up the good work

Your solution looks great however I think your progress bar needs to be rounded.

In terms of your accessibility issues simply wrap all your content between main tags.

I hope this helps

Cheers Happy coding πŸ‘

0

GregsGrogβ€’ 40

@GregsGrog

Posted

@TheCoderGuru Thanks! I was a bit confused by the accessibility issues. Do you know what browser frontend mentor uses to take screenshots seems I missed somthing, my progress bar works fine in chrome but I guess not in other browsers.

0
Shashree Samuelβ€’ 9,260

@shashreesamuel

Posted

GregsGrog If your progress bar does not work well in other browsers I recommend checking the browser compatibility.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#browser_compatibility

I hope this helps

Cheers Happy coding πŸ‘

0
Anna Leighβ€’ 5,135

@brasspetals

Posted

@GregsGrog I believe the screenshots are taken in Firefox.

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