background image not displaying properly code example
Example 1: css background image not working
.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 */
Example 2: css background image not showing
body { background: url('image_path_name') repeat 0 0; }
Make sure image_path_name is correctly written, if not then kindly check file extension once.
Thanks!!