CSS conflict: applies the same CSS properties as #5749
Replies: 3 comments 14 replies
|
Hey @Mihai-github 👋 I hope you're enjoying Tailwind CSS so far! When applying responsive variants, there must be no space between the variant and the utility class.
<div className="text-left bg-gray-700 lg:text-center lg:bg-gray-500">
<p style={{ color: "#fff" }}>salut</p>
</div>This is not a hack, this is how Tailwind responsive classes work! You define styles for small screens, and can alter those styles at specific breakpoints where needed, like you do here for the
When you have a space between the
I am not sure what your code environment looks like, so it's kinda hard to understand this question, but perhaps my explanation above solves the problem for you? |
|
I had to change my tailwindCSS intellisense classRegex option for a special case. For me, To fix this issue, the following option worked !
This is my full TailwindCSS settings in the settings.json ! |



Hey @Mihai-github 👋
I hope you're enjoying Tailwind CSS so far!
When applying responsive variants, there must be no space between the variant and the utility class.
lg:text-centeris correct,lg: text-center(with the space) is not.This is not a hack, this is how Tailwind responsive classes work! You define styles for small screens, and can alter those styles a…