how to get background image present in other folder with css? -


guys folder structure

project

index.php css

style.css

js

javascript.js

image

background.jpeg

style.css

body{ background-image: url("image\background.jpeg"); } 

index.php

<html> <head>     <title>todo application</title>     <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body>     <div id = "header">     hiuiiiii     </div> </body> </html> 

so guys tell me wrong such can correct background image displayed.

i believe issue.

incorrect - url("image\background.jpeg");

correct - url("../image/background.jpg");

../ - means 1 directory give image location, in case, inside image directory.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -