.container {
background-image: url("img/rose.jpg");
height: 800px;
}
/* Check Path to image, in this case, its in a folder called img */
/* Check if you Linked your css File on your header, you Link it in the
Header like this <link rel="stylesheet" href="main.css"> */
/* Check if the Name of your Image is the same like how you saved it */
background-image: url(nickcage.jpg); // first problem may be missing quotation mark
// Second may be wrong path
// check the name of the file if there is any error
// check whether you are using proper extension of the file
background-image: url(nickcage.jpg); // No quotes around the file name so just write it down without "nickcage".jpg
Code Example |
---|
Css :: add profile picture to a form in html and css |
Css :: css margin top responsive |
Css :: get ssl certificate command line |
Css :: background position |
Css :: inline input form css |
Css :: css h sizes |
Css :: css background text clip |
Css :: css custom properties |
Css :: tailblocks |
Css :: border collapse makes outset not work |
Css :: arrow right css |
Css :: smooth button effect css |
Css :: css hover |
Css :: flex flow |
Css :: round image css |
Css :: how to make bold text css |
Css :: double color background css |
Css :: .row bootstrap |
Css :: css flexbox |
Css :: how to style ul circles black in css |
Css :: hex color code for tan |
Css :: :not(:hover) |
Css :: how to change the select arrow in css |
Css :: how to remove the body margin from navbar in css |
Css :: animated progress bar css |
Css :: css two classes together |
Css :: em in css |
Css :: css display |
Css :: css push div down |
Css :: css wavy line |