Issue with "grid-cols-10" not working in Tailwind CSS #12878
-
Hi everyone, I'm facing an unusual issue with Tailwind CSS where the Here's a simplified version of my code: <div className="grid gap-5 px-4 grid-cols-10">
<label htmlFor="rules_field" className="col-span-3 text-xs mb-2 text-gry-700">
Field
</label>
<label htmlFor="rules_operator" className="col-span-3 text-xs mb-2 text-gry-700">
Operator
</label>
<label htmlFor="rules_value" className="col-span-3 text-xs mb-2 text-gry-700">
Value
</label>
</div> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hey @Sathishkumar0404! I tried your code example in Tailwind Play, and it worked as expected - you can find it here: https://play.tailwindcss.com/iUepkYbt2Z. To fix the issue, please check your Tailwind Configuration and ensure the following:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
The issue has been resolved by adding the file path to the
tailwind.config.js
file.The main component where I was encountering the error is located in the
containers
directory. By adding the following path to the Tailwind CSS configuration, the problem was fixed: