Solved

CSS - overwrite browser font...

Posted on 2014-07-18
2
262 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
  • 2
2 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spacing 5 25
Cannot scroll down on html page 2 25
Menu Inconsistent 3 18
Open a div with click on an image 7 38
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.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now