@AgataLiberska
Posted
Hi Davide, well done on your first project! Quite an ambitious choice with the slider and it looks really good!
One note: you have most of your styles inside a media query for min screen width of 375px. This means that on screens narrower than that, all styling disappears. I would remove that query completely and just have those styles as a base for all screen sizes, and then add media queries to elements you want to modify on larger screens.
As for your 1st question, you've set padding-left and padding-bottom to the subtitle text (in the padding shorthand, it goes: top right bottom left
). If you want it centered exactly as in the design, you could set padding on left and right and that would work on small screens. You could also set a max-width
on that text and margin: auto
to center it, but this would mean changing your media queries styling as well.
I would also add text-align: center
to the h1
.
Hope this helps but again, really well done!
@Da-vi-de
Posted
Hi Agata Liberska, thank you very much! :-) I made the changes you suggested and it looks better, I deleted the first media query as well. Thank you again for taking the time and look at my code, i really did appreciate your help. Happy coding, have a nice day.