Solved

CSS - overwrite browser font...

Posted on 2014-07-18
2
280 Views
Last Modified: 2014-07-18
How can I globally overwrite the font type and size so that the site will have similar look using different browsers.

body{
??
}

or html{
??
}

Thank you
0
Comment
Question by:Mike Eghtebas
[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
2 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40204036
body{
   font-size:14px!important;
}

Open in new window


But if you also use
body{
   font-size:14px!important;
}
p:font-size:18px!important;

Open in new window


The p tag will win.  Try placing your body{foo:bar!important;} as the very last css item.
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 40204041
Actually, that is wrong. In the example below, the p will still win.  

p{font-size:18px!important;}
body{
   font-size:14px!important;
}

Open in new window

You would have to do body p to over take the p only tag.
p{font-size:18px!important;}
body p{
   font-size:14px!important;
}

Open in new window

0

Featured Post

Independent Software Vendors: 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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 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