overwrite a font property

Posted on 2011-02-24
Last Modified: 2012-05-11

how to overwrite a font property
and you cant change this line:
<font size="2">I want this font to be 12px</font>

I am working with alot of copy paste text and want the all the fonts to be the same
Question by:rgb192

Accepted Solution

LAMASE earned 500 total points
ID: 34974697
body * {
font-size: 12px !important;

Open in new window


font {
font-size: 12px !important;

Open in new window


Author Closing Comment

ID: 34975479

Expert Comment

ID: 34975494
I think it would be wise to strip the text and then style it with CSS within its attribute tags.  It will keep your code clean.

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Applying an inline style that applies to child elements 2 50
compact pure CSS Read More Toggle 4 58
Remove lines by logo 2 30
How to get this page layout correct 13 29
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question