Reputation: 4865
How can I reference background image url
when the css file is in vendor/assets/stylesheets
directory ? After looking to SO
posts
background: url(myimage.png) repeat-x;
and
background: asset-url('myimage.png'image) repeat-x;
but none of them worked
Upvotes: 0
Views: 564
Reputation: 22663
try this File Path
background-image: url("../../assets/ion/myimage.png") repeat-x;
Upvotes: 0
Reputation: 4251
Place your image inside app/vendor/assets/images/myimage.png
#research_sign {
background: url("myimage.png") repeat-x;
}
#Important: don't forget to restart your server!
(as you added image inside your vendor/images)
Upvotes: 0
Reputation: 11627
You should try
background: url("/assets/ion/myimage.png") repeat-x;
Upvotes: 1