Solved

set a rule to make all the h1, p, li a certain size

Posted on 2011-02-25
2
236 Views
Last Modified: 2012-06-22
I copy and paste text
I do not want to change the text

I want to set a rule
that all
h1 is 14px
p is 12px
li is 10px


   
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


maybe this is similar to the anser

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

font {
font-size: 12px !important;
}
0
Comment
Question by:rgb192
2 Comments
 
LVL 4

Accepted Solution

by:
jmnf earned 500 total points
ID: 34983133
Sometime you need to use !important and some other times you need to set font and font-size to override previous styles.
If this does not help you, you can probably use jquery after document ready and then change those styles.... I can help you with this.

h1
{
	font: 14px Arial !important;
	font-size: 14px !important;
}
p
{
	font: 12px Arial !important;
	font-size: 12px !important;
}
li
{
	font: 10px Arial !important;
	font-size: 10px !important;
}

Open in new window

0
 

Author Closing Comment

by:rgb192
ID: 34983370
thanks
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

839 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