Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the text length class changes the alignment of the text. #1

Open
cholkany opened this issue Feb 27, 2024 · 0 comments
Open

Adding the text length class changes the alignment of the text. #1

cholkany opened this issue Feb 27, 2024 · 0 comments

Comments

@cholkany
Copy link

cholkany commented Feb 27, 2024

I have a div that contains centered text elements, on adding the "line-length-md" to the paragraph, the text contents are aligned to the left by i want them centered as before. The line-length-md does really make the text shorter and more readable.

<div className="text-center">
            <span className="mb-1 inline-block bg-pink-100  px-3 py-1 text-sm font-semibold text-pink-700">
              -Services We Offer-
            </span>
            <h2 className="text-3xl font-semibold text-gray-800">Our Best Solution</h2>
            <p className="mt-8 text-gray-600 line-length-md">
                Lorem ipsum dolor sit amet consectetur. Leo turpis blandit vivamus in nulla risus. Nulla amet velit id neque
                nibh nisi platea. Amet et erat ut dignissim sed. Non ut amet mauris eget lacus mauris.
            </p>
        </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant