You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The background image example shows a relative URL, however, after many trials & tests I have only been able to get the bg-[url()] utility to work with a full URL.
// does not work
bg-[url(/img/mountains.jpg)]
// does work
bg-[url(https://tailwind4.test/img/mountains.jpg)]
The text was updated successfully, but these errors were encountered:
I tried this in a Laravel app that I upgraded, and since I couldn't get it working (figured I was doing something wrong) I created a new Laravel install using Herd (followed the instructions from Tailwind's docs to be sure) and was still not able to see the image using a relative URL. I was able to use style="background: url('/dark.jpg')" in the same div, and I saw the image, so I know the link is valid.
The background image example shows a relative URL, however, after many trials & tests I have only been able to get the
bg-[url()]
utility to work with a full URL.The text was updated successfully, but these errors were encountered: