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 300 views
2 answers 283 views
1 answer 352 views
1 answer 419 views
1 answer 280 views
1 answer 184 views
3 answers 404 views
...