Ref.:relative path problem between folder css and images , what´s wrong ?
The file index.php is formatted by means the file style.css which is inside the folder css.
All works fine except that there are two images on the css that I can´t manage them to be rendered.
The folders where the files are placed are the following :
**root
.
.
.
- php [index.php]
- css [style.css]
- images [image1.png , image2.png]
.
.**
This is part of css just to illustrate :
i
nput.button {
cursor: pointer;
border: none;
font-weight: bold;
background: url(…/images/image1.png) no-repeat left top;
width: 90px;
height: 28px;
margin-left: 150px;
}
For the sake of a test I´ve pasted inside the css folder both images and removed the relative path changing background:
url(…/images/image1.png) by background: url(image1.png).
As I expected it worked , images are visualizaed , what proves that the problem is on the path.
If I understood properly two dots and a slash mean go up one level : …/ In this case between folder css and images there is one level.
So why the images do not appear ? what is wrong ?