Design comparison
Solution retrospective
I still don't know what is what in box-shadow's value, what's the first, second, third and forth value does (0, 0, 0, 0), I only play the value to get that box-shadow and I don't have any idea xD. And about the :focus-visible why only the :focus worked for me. Thank you in advance!
Community feedback
- @AdrianoEscarabotePosted about 2 years ago
Hi AsukalDePapa, how are you?
I really liked the result of your project, but I have some tips that I think you will enjoy:
To prevent the background image from breaking at higher resolutions, we can prevent this in two different ways:
-
Add a
background-repeat: repeat-x;
, the image will repeat on the horizontal axis, preventing it from breaking. -
Add a
background-size: 100% 50vmin;
, the50vmin
will set its height as the page target, and100%
will make it stretch on the horizontal axis.
Feel free to choose one of the two!
To improve the structure of your code, wrap the
div.attribution
with thefooter
tagThe rest is great!
I hope it helps... 👍
Marked as helpful0@j-tomajinPosted about 2 years ago@AdrianoEscarabote Thankyou! I really don't have any idea how background-images works.
1 -
- @lr6kidyPosted about 2 years ago
So, for box-shadow: 1px 5px 10px red; 1px is the width of the shadow horizontally, 5px its height vertically, 10px is the bluriness of the shadow (the lowest you go, the more blocky it is), and obviously, red is its color.
Just copy " box-shadow: 1px 5px 10px red; ", play with the values for a while, and you'll get the basics. You can add to this later on, there are a lot of ressources around for you to do so!
Marked as helpful0@j-tomajinPosted about 2 years ago@lr6kidy I do understand it now. and probably apply it in every single project I'm working. Thank you!
0
Please log in to post a comment
Log in with GitHubJoin 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