0

When I put background-image: url() in to .css , browser doesnt put that image in that postition, but when i write that command in .aspx i get the image. Why it cant to call image from .css , i am making few themes so i have in every theme one .css and in each i want to have other header pict for example.

mikrimouse
  • 277
  • 1
  • 6
  • 24

1 Answers1

2

When you use pict/logo.jpg in your .css file, this is relative to the location of the .css file, not the file it's included in. If you put it in your .aspx, it's relative to the .aspx. You probably just need /pict/logo.jpg

See this previous question:

Using relative URL in CSS file, what location is it relative to?

Community
  • 1
  • 1
Lou Franco
  • 87,846
  • 14
  • 132
  • 192