Reputation: 21
I'm trying to make my background image responsive using tailwind. Can't find background-position-x in their documentation.
Upvotes: 2
Views: 9432
Reputation: 45
At the moment, TailwindCSS doesn't have a utility for this. Except for adding it as a utility either by a plugin or in CSS, if you're using the JIT Mode, the shortest way to do this is adding it as an arbitrary property.
For example adding this: [background-position-x:-100px]
will generate:
.\[background-position-x\:-100px\] {
background-position-x: -100px;
}
Upvotes: 2