Search
 
SCRIPT & CODE EXAMPLE
 

CSS

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 */

Comment

background image in css is not working

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 
Comment

background-image url not working

background-image: url(nickcage.jpg); // No quotes around the file name so just write it down without "nickcage".jpg
Comment

PREVIOUS NEXT
Code Example
Css :: width in css 
Css :: remove line breaks css 
Css :: option select css 
Css :: css element with id and class 
Css :: how to use a background property in css 
Css :: full meaning of css 
Css :: html click through image 
Css :: pill shape css 
Css :: tailwindcss top 
Css :: horizontal dotted progress library 
Typescript :: prettier not working with tsx 
Typescript :: ionic generate resources 
Typescript :: git count commits by author 
Typescript :: control structure testing 
Typescript :: type of setinterval typescript 
Typescript :: flutter text button shape 
Typescript :: useref react typescript 
Typescript :: button center mui 
Typescript :: google sheets replace dot with comma 
Typescript :: execute only one test spec with angular-cli (ng test) 
Typescript :: typescript initialize map inline 
Typescript :: typescript add property if not exist, merge if it exists 
Typescript :: typescript cloudinary api setup 
Typescript :: keyboard events pygame 
Typescript :: cannot be used as a jsx component 
Typescript :: css selector starts with 
Typescript :: email validation in angular 
Typescript :: ratio of subplots matplotlib 
Typescript :: typescript html input 
Typescript :: already exists http status code 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =