-
Hi, I searched Google but couldn't find anywhere mentioned if Tailwind support multiple backgrounds ? Is there a specific syntax I can use ? Since tailwind support |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
I figured a way to do it using arbitrary values For anyone who might need this in the future here's the class syntax: |
Beta Was this translation helpful? Give feedback.
-
@mrassili did you manage to also position each background image ? |
Beta Was this translation helpful? Give feedback.
-
How to use background with gradients and photo in tailwind. background-image: linear-gradient(rgba(0, 0, 0, 0.527),rgba(0, 0, 0, 0.5)) , url(photo.jpg); |
Beta Was this translation helpful? Give feedback.
I figured a way to do it using arbitrary values
For anyone who might need this in the future here's the class syntax:
bg-[url(../assets/bg-1.png),_url(../assets/bg-2.png)]
the underscore is used by Tailwind to denote whitespace