Solved

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

Posted on 2011-02-25
2
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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!
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

724 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