Page 1 of 1

Problem with template's background...

Posted: Mon 24. Oct 2011, 10:36
by huntertx
Like in Subject. I want to obtain custom image in background but i dont know which link url should i add. When i'm editing my template in main content i put the code: <div style="background-image: url(.../img/pasek na góre.jpg);height: 200px; width: 200px; border: 1px solid black;"> </div>

"img" folder is in main folder where phpwcms is installed... i tried everyting and nothing works ( images from web with full url works great)

Re: Problem with template's background...

Posted: Mon 24. Oct 2011, 12:09
by top
Avoid special chars like ó and spaces in file-names.

And try "../../" instead ".../" in the path.

Code: Select all

url(../../img/pasek_na-gore.jpg)

Re: Problem with template's background...

Posted: Tue 25. Oct 2011, 23:12
by huntertx
Great Answer !!! :) you're awesome. Thanx :)