Skip to content

[v3] How do I use arbitrary value for text-align? #18346

Answered by wongjn
hashfiputra asked this question in Help
Discussion options

You must be logged in to vote

It won't work for text-align since the classes are not "dynamic" utilities. You could use an arbitrary property class instead like:

[text-align:value]

But for left, you should be able to use text-left.

Also, just in case you may be trying to do this, you cannot use string interpolation/concatenation to build class names.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hashfiputra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants