+ 10

How to display breadcrumb header image in Laravel 5.4.24

I placed my assets folder in the public directory ( where it can be accessed publicly) and in my CSS file in the assets folder I have a code like : #heading-breadcrumbs { background:url ('img/banner.jpg') } the link seems to work because it produced http://siterev.dev/assets/img/banner.jpg . but the problem is thst it is not loading the image and it is also showing 404 error in network monitor mode of my browser. Any ideas or solution is welcome...

13th May 2017, 11:52 AM
Awele Omeligwe
Awele Omeligwe - avatar
3 Réponses
+ 8
@Julien Agario background:src(path to image); cannot be the solution because to load an image in a CSS file, you need to use : background:url(path to image); otherwise CSS will not understand what you mean but thanks for response.
15th May 2017, 5:06 AM
Awele Omeligwe
Awele Omeligwe - avatar
+ 2
im not sure but try as "url" "src"
14th May 2017, 11:24 PM
TrueJu
TrueJu - avatar
0
this should work #heading-breadcrumbs { background-image: {{ URL::to ('assets/img/banner.jpg') }} looking forward to hear back on results.
15th Dec 2017, 10:23 AM
Antony O. Onyango
Antony O. Onyango - avatar