Is there a way to put a check in SASS files or CSS files to check for the content inside a div:
For e.g.: If a div has numbers in it I want the content inside it to be aligned to the right and whereas if the div has text in it I want the content to be aligned to the left.
Is it possible. I see it happening on a lot of websites, and I pretty sure that they must not have hard-coded it that way.
Thanks in advance.