+ 1

Why do my navbar elements have that black background?

https://code.sololearn.com/WQmPDgh8f3S2/?ref=app

6th May 2023, 12:08 AM
Владислав Гагаринов
Владислав Гагаринов - avatar
10 Antworten
+ 2
oh I think I understand what you meant now. Use text-shadow instead of box-shadow and see if that's more what you were hoping for
6th May 2023, 1:05 AM
Orin Cook
Orin Cook - avatar
+ 1
uhh, cause you told it to when you said header{ background-color: black }? Is this a trick question?
6th May 2023, 12:19 AM
Orin Cook
Orin Cook - avatar
+ 1
It does go away, at least for me to be more specific, it switches to inheriting the grey color from body
6th May 2023, 12:22 AM
Orin Cook
Orin Cook - avatar
0
Then why if I delete this line in header problem doesn't go away
6th May 2023, 12:21 AM
Владислав Гагаринов
Владислав Гагаринов - avatar
0
The background turns gray
6th May 2023, 12:23 AM
Владислав Гагаринов
Владислав Гагаринов - avatar
0
right, that's the body background-color: #555
6th May 2023, 12:24 AM
Orin Cook
Orin Cook - avatar
0
Then why if I change the background color to transparent in "a {background-color}" it doesn't go away?
6th May 2023, 12:26 AM
Владислав Гагаринов
Владислав Гагаринов - avatar
0
Well, for starters because transparent is transparent, so the body shows up through it. But also, <a>'s background is very small, change it to something like blue or red just to see
6th May 2023, 12:55 AM
Orin Cook
Orin Cook - avatar
0
So how do I delete <a> background so i can see its Shadow properly
6th May 2023, 12:57 AM
Владислав Гагаринов
Владислав Гагаринов - avatar
0
Finally, thank you
6th May 2023, 1:06 AM
Владислав Гагаринов
Владислав Гагаринов - avatar