epi82
epi82

Reputation: 497

CSS force "font-size: small;" to 13px

how can I force the attribute "small" to a specifically size? (ex: 13px)

I'm reading data from a db and I have to display tags like this:

<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: justify;"><span style="font-size: small;">Text</span></p>

I can't modify these tags and works different in IE8 and FireFox so I want to force it.

Is it possible?

Thank you.

Upvotes: 2

Views: 1613

Answers (2)

bobince
bobince

Reputation: 536389

Add a Standards mode <!DOCTYPE> to your document.

The font-size keywords are only implemented differently by IE in Quirks mode. Go to Standards mode and IE will behave the same as Firefox (and it fixes many other bugs too).

Upvotes: 7

Lasse V. Karlsen
Lasse V. Karlsen

Reputation: 391346

Will this work?

font-size: 13px;

Upvotes: 1

Related Questions