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 318 views
2 answers 305 views
1 answer 368 views
1 answer 433 views
1 answer 311 views
1 answer 200 views
3 answers 424 views
...