Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Override CSS text-transform

I am using the following CSS which transforms all text to uppercase:

.taxtabs {
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: .8em;
width: inherit;
text-align:center;
text-transform: uppercase;
border-collapse: collapse;
}

Now what I would like to do is to override this CSS and allow certain text to be lowercase. How would I do that? Perhaps using some kind of inline CSS? Thanks.

like image 767
DanielAttard Avatar asked Dec 30 '11 01:12

DanielAttard


3 Answers

Probably better to create a class that doesn't have any text-transform.

.normal {
    text-transform: none;
}

<div class="taxtabs">
... <span class="normal">this text is not uppercase</span> ...
</div>
like image 130
U-DON Avatar answered Oct 20 '22 01:10

U-DON


Create a class for whatever elements you don't want capped and put text-transform: none !important; in it. I don't know your layout, so I put !important for good measure (for example if your element had both texttabs and override classes).

.override {
    text-transform: none !important;
}
like image 38
ThinkingStiff Avatar answered Oct 19 '22 23:10

ThinkingStiff


Maybe add a new class called lowercase to selected .textabs so you can define something like this:

.textabs.lowercase { text-transform: lowercase; }
like image 22
sczizzo Avatar answered Oct 20 '22 01:10

sczizzo