Solved

overwrite a font property

Posted on 2011-02-24
3
466 Views
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>



reason:
I am working with alot of copy paste text and want the all the fonts to be the same
0
Comment
Question by:rgb192
3 Comments
 
LVL 4

Accepted Solution

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

Open in new window


or

font {
font-size: 12px !important;
}

Open in new window

0
 

Author Closing Comment

by:rgb192
ID: 34975479
thanks
0
 
LVL 1

Expert Comment

by:pmainardi
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Salesforce Apex not same result as my HTML page. Salesforce breaks it. 3 35
Printing a Google Form 2 25
Getting Column Height to Match Other Column 5 44
Syntax Error 2 45
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now