Solved

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

Posted on 2011-02-25
2
245 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
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 to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 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