Skip to content

Instantly share code, notes, and snippets.

@ron4stoppable
Created April 23, 2016 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ron4stoppable/c99382bdfede8e1812fe3d5625e76ba3 to your computer and use it in GitHub Desktop.
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.
/*
* 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