Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

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

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
rgb192
Asked:
rgb192
1 Solution
 
jmnfCommented:
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
 
rgb192Author Commented:
thanks
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now