Created
July 30, 2018 04:19
-
-
Save keybounce/389c166736cc1d85f2012b1b486f1676 to your computer and use it in GitHub Desktop.
CSS for forcing browser default font
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
html, body | |
{ | |
font-size: medium !important ; | |
font-family: normal !important ; | |
line-height: 1.33em !important ; /* Change 2011-12-28: FF 9 no longer does "normal" correct here */ | |
/* margin: unset !important; */ | |
} | |
input, textarea | |
, table tbody tr td | |
, p, td, tr, div, font, label, a | |
{ | |
font-size: medium !important ; | |
line-height: inherit !important; | |
} | |
/* Notes on the above: | |
"medium" == browser specified default | |
"100%" == outer container size (usually CSS'd smaller) | |
16pt == a font size. | |
What that says: Default the page to my size, not the site's size; then, allow changes that I set to be kept. | |
Yes, it's odd. No, it's not perfect. | |
*/ | |
.smalltext { /* Known to be used on an SMF site; seems "generic" enough. */ | |
font-size: small !important ; | |
font-family: inherit !important ; | |
line-height: 1.33em !important ; | |
} | |
#bodyContent /* Wikipedia, also "generic" */ | |
, .postbody /* Seen on some forums */ | |
, .messageText /* also on some forums */ | |
, .message /* ditto */ | |
, .messageInfo | |
{ | |
font-size: medium !important ; | |
font-family: inherit !important ; | |
line-height: 1.33em !important ; | |
} | |
.page, .pageWidth | |
{ | |
/* margin: unset !important; */ | |
} | |
body | |
{ | |
/* padding-left: 5px; */ | |
width: 100% !important; | |
} | |
body.div | |
{ /* Does not work, sadly. Still have things declaring 95%, etc. */ | |
width: 100%!important; | |
} | |
.post | |
{ | |
overflow: unset; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment