Cozzbie Cozzbie - 1 year ago 123
CSS Question

CSS Class declaration in square brackets

So I have seen this CSS class in a lib

[text-uppercase] {
text-transform: uppercase;

and I am not sure on how to use it in a

<div class="text-uppercase | [text-uppercase]"></div>

I have tried both. Not working.

I am seeing this in a ionic2.

Answer Source

For the selector to work:
<div text-uppercase></div>

[text-uppercase] selector matches an attribute on a tag.

More on CSS selectors on SO Documentation

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download