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 storage component (HTML, CSS, JS)

Basak ulcayā€¢ 110

@basakulcay

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


Hi all, I used responsive design for max-width : 375px but I am realizing there are still issues when I reduced the screensize. Can someone help me out on which other conditions I should be adapting and where else I'm making mistakes? Thanks!

Community feedback

Shashi Loā€¢ 1,345

@shashilo

Posted

Hey Basak. I do see more than just responsive issues, but this was a great try. All the elements are used and there just needs to be some cleanup in your code. Here are the things that can improved:

  • They way you're using position: relative and moving the sections is very difficult when it comes to making it fluid. It makes it difficult to be responsive.
  • I would wrap the sections in a .container with a max-width.
  • Remove the set heights from the sections and allow the design to be fluid.
  • Instead of using max-width for your media query, build mobile first. Your default CSS styles are for mobile and use min-width to override styles for larger screens as needed. This is a good article talking about current media queries. http://devfacts.com/media-queries-breakpoints-2020/
3
P
Emmilie Estabilloā€¢ 5,540

@emestabillo

Posted

Hi Basak, that particular line is actually the culprit. All the code under max-width: 375px will only be applied if the screen width is less or equal to 375px. Once it hits 376px and up, your project will take the desktop styles declared on top of your CSS file. Maybe you meant min-width: 375px? Or a higher breakpoint such as max-width: 768px. Let me know if this helps.

1

Basak ulcayā€¢ 110

@basakulcay

Posted

Hi, I meant all the code below max-width: 375px to be applied only when the screen size smaller than 375px. My problem is with the full size screen, all looks fine but once I slowly start to decrease the screen width, it gets out of order (example: the box on the right appears on top on the left one). How can I make sure they stay side by side all the times? And the boxes for Fylo and Data Usage also changes size at the screen gets smaller so they are always visible?

0
Roman Filenkoā€¢ 3,335

@rfilenko

Posted

Hi, just use flexbox or grid for layout, this way it will be much easier to put elements into right spots, including resposivness.

Keep coding, Roman

0
Moses Umuomoā€¢ 105

@MosesUmuomo

Posted

I think you should change the 375px to 320px

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