Created
April 23, 2016 18:12
-
-
Save ron4stoppable/c99382bdfede8e1812fe3d5625e76ba3 to your computer and use it in GitHub Desktop.
Most web browsers these days do not explicitly handle html text styling - SUB, SUP, B, I and so on - they (kinda sorta) are converted into SPAN elements with appropriate CSS properties, and the rendering engine only deals with that.
This file contains 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
/* | |
* Most web browsers these days do not explicitly handle | |
* html text styling - SUB, SUP, B, I and so on - they (kinda | |
* sorta) are converted into SPAN elements with appropriate CSS | |
* properties, and the rendering engine only deals with that. | |
* | |
*/ | |
/* B for bold */ | |
.bold { | |
font-weight: bold; | |
} | |
/* I for italic */ | |
.italic { | |
font-style: italic; | |
} | |
/* SUP -> superscript */ | |
.superscript { | |
font-size: .83em; | |
line-height: 0.5em; | |
vertical-align: baseline; | |
position: relative; | |
top: -0.4em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment