+ 3
How can I set a header background image?
I can't do it. I have written #header { background-image: url("htttps://.....") ; But I can't get it to work.
9 Answers
+ 3
It's done, meaning you've solved your problem or that you've shared your code?
I believe what Arturpop means is that you should use the + button and attach your code which isn't working here.
+ 2
Share the code so we can take a look at it. đ
+ 2
I have solved It. Thank you very much.
+ 2
Awesome and congratulations
+ 2
Use the header tag and in css keep background to that tag ,width is 100% ,height 100vh
+ 1
It's done
+ 1
Ok firstly and mostly I would adwise you to write CSS with classes and not id's because if you want to use js you can't name the id and the class the same way because it wouldn't know which to choose, plus I see a typo("htttps" - 3x t), I don't know if it is a mistake when you were writing this or if it was like that when you copied the code but I would recommend you to also write in your header after that line of code background-repeat: no-repeat; and a background-size: cover;
This should make the image cover the background.
I hope this helps you.
0
What did you do to solve it?
0
Inline