Help with arbitrary background image #6617
-
Hello There, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
This should be working: <div class="bg-[url('/img/logo.svg')] bg-no-repeat">
...
</div> Also you can set the background image with a Style Attribute: <div class="bg-no-repeat" style="background-image: url('/img/logo.svg')">
...
</div> Working Example: Tailwind Play |
Beta Was this translation helpful? Give feedback.
-
i'm having the same issue |
Beta Was this translation helpful? Give feedback.
-
Having same issue, with tailwindcss@3.3.3, looks like this feature is not very stable.
|
Beta Was this translation helpful? Give feedback.
This should be working:
Also you can set the background image with a Style Attribute:
Working Example: Tailwind Play