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

text-align-center class does not work on headers in cards #43

Open
vclewis opened this issue Feb 5, 2025 · 6 comments
Open

text-align-center class does not work on headers in cards #43

vclewis opened this issue Feb 5, 2025 · 6 comments
Assignees

Comments

@vclewis
Copy link
Collaborator

vclewis commented Feb 5, 2025

We have H2s with text-align-center and the text-align-center property doesn't apply. It works fine with paragraph text but not with the H2s.

plain cards, 4 across.

https://live-cmqcc-bd.pantheonsite.io/about

Image
@irinaz
Copy link
Collaborator

irinaz commented Feb 5, 2025

By default we probably do not want card titles to be centered - I can add custom css injector. Let's connect to figure out level of priority here.

@vclewis
Copy link
Collaborator Author

vclewis commented Feb 5, 2025

These are not card titles--they are H2s within the card body.

@vclewis
Copy link
Collaborator Author

vclewis commented Feb 5, 2025

Reason being--they want these linked and centered.

@sikofitt
Copy link
Collaborator

sikofitt commented Feb 5, 2025

This is interesting. Even when forcing it inline and adding !important, it still doesn't center. Also I believe the right tailwind class is text-center.

Image

@irinaz
Copy link
Collaborator

irinaz commented Feb 5, 2025

@sikofitt , I see the same issue. Very intriguing

@sikofitt
Copy link
Collaborator

sikofitt commented Feb 5, 2025

So if I add text-center to the paragraphs-aplenty wrapper, and then add text-justify to the ul tag of items, it seems to work. That is kind of a painful work around though.

Image

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

3 participants