Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

HTML CSS background Image buggy

Hello im an very beginner of html/css i made an navigation bar and an footer till yet. So i wanted an background image now but its bugged idk why. I tested a couple of random images but its for every image. Can someone help me pls? Code and Screenshot of the Problem belenter image description hereowenter image description here

I tried background-repeat: no-repeat;
But i am a very beginer so i dont know what to do. I just want an normal background. The details are already described

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

* {
 background-image: url(ttt.png);
}

The above code means you put every element a background image.

If you just want body with the background image, use below code

body {
 background-image: url(ttt.png);
}

You also should set something like background-size to make the size you want.

The doc

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading