Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-02-25
2
Medium Priority
?
255 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 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

604 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