So I finished my first challenge for the “Responsive Web Design Principles”.
I would like to read your thoughts.
How can I make it better? Does it need refactoring? Etc.
So I finished my first challenge for the “Responsive Web Design Principles”.
I would like to read your thoughts.
How can I make it better? Does it need refactoring? Etc.
Your page looks good @Porphyrogennitos.
Regarding your media query question,
background
will supercede all previous background-color
, background-image
, etc. specifications. It’s basically a shorthand, but a reset as well.
Could this page be done with grid? If so, should I do it with grid so I practice?
Flexbox makes more sense for this. As a general rule of thumb, Flexbox for single axis (either X or Y) layout, CSS Grid for 2-axis layout.
you might wanna add some extra content/utilize more element options like lists, span, bold text, just to taste how it works and the experience in coding it.
I also would suggest you use less bright color for the background, because it can be unpleasing for the eyes.
The page looks good overall, but a lot of improvement can be done.
Other quick notes
width: 100%;
max-width: 620px; /* 620px sis just an example */
This will make your image scale with the viewport, and when the viewport is > 620px the image will remain 620px.
Check this:
It has the max-width
with a relative size and the width
with an absolute.
For responsiveness you’re correct in using relative units.
This is not correct. There are use cases for using relative max-width values. Say for example that you have an image set for 600px width inside a responsive container. Now that container reduces in width to 500px due to a smaller browser window. In that case setting a relative max-width of 100% makes sense. It ensures that the image is set to 600px width. But if the container becomes smaller than that, it makes sure the image resizes with it.
Edit: I stand corrected. You’d get the same effect by setting a width to 100% and a max width to 600px. I suppose it’s a matter of preference to how you approach it.
yeah, I guess I missed this one, Thank you.