How to set the background-image URL path in CSS

1 Answer

0 votes

if css path is: yourwebsite.com/css/

if image path is: yourwebsite.com/images/

../ go up from yourwebsite.com/css/ to yourwebsite.com 
you add /images/me.png so yourwebsite.com/images/me.png is the right path

and the css code:

background: url("../images/me.png") 



answered Mar 26, 2015 by avibootz

Related questions

1 answer 313 views
2 answers 302 views
1 answer 366 views
1 answer 430 views
1 answer 302 views
1 answer 199 views
3 answers 420 views
...