Created
June 15, 2020 17:13
-
-
Save jashaj/8365f0230f7e8e049972bc4c95e26042 to your computer and use it in GitHub Desktop.
Alignment issue with large fonts
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
| <!doctype html> | |
| <html lang=en> | |
| <head> | |
| <title>Fonts</title> | |
| <link href="https://fonts.googleapis.com/css2?family=Open+Sans&family=Montserrat&display=swap" rel="stylesheet"> | |
| <style> | |
| html{font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif } | |
| body { | |
| max-width: 45em; | |
| margin:0 auto; | |
| border: 1px solid red; | |
| font-family: 'Open Sans', sans-serif; | |
| /*font-family: Garamond, serif;*/ | |
| font-stretch: normal; | |
| } | |
| h1, p { | |
| margin: 0; | |
| } | |
| .normal { | |
| font-size: 1rem; | |
| } | |
| .huge { | |
| font-size: 5rem; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Fonts</h1> | |
| <p class=normal>This is normal text</p> | |
| <p class=huge>A</p> | |
| <!--<p class=huge>B</p> | |
| <p class=huge>C</p>--> | |
| <p class=huge>D</p> | |
| <!--<p class=huge>E</p> | |
| <p class=huge>F</p> | |
| <p class=huge>G</p> | |
| <p class=huge>H</p> | |
| <p class=huge>I</p>--> | |
| <p class=huge>J</p> | |
| <p class=huge>K</p> | |
| <!--<p class=huge>L</p> | |
| <p class=huge>M</p> | |
| <p class=huge>N</p> | |
| <p class=huge>O</p> | |
| <p class=huge>P</p> | |
| <p class=huge>Q</p> | |
| <p class=huge>R</p>--> | |
| <p class=huge>S</p> | |
| <p class=huge>T</p> | |
| <p class=huge>U</p> | |
| <p class=huge>V</p> | |
| <p class=huge>W</p> | |
| <p class=huge>X</p> | |
| <p class=huge>Y</p> | |
| <p class=huge>Z</p> | |
| <p class=normal>Back is normal text</p> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment