Created
January 28, 2020 02:53
-
-
Save mabster/07cfbfce648f7ce2763b18ccd35cab89 to your computer and use it in GitHub Desktop.
Office UI Fabric Core Icon Alignment
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> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/11.0.0/css/fabric.min.css" /> | |
</head> | |
<body class="ms-Fabric" dir="ltr"> | |
<p class="ms-fontSize-12" style="line-height: 20px;"><i class="ms-Icon ms-Icon--Calendar" aria-hidden="true"></i> Due 22/03/2020</p> | |
<p class="ms-fontSize-12"><i class="ms-Icon ms-Icon--Calendar" aria-hidden="true"></i> Due 22/03/2020</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrapping the text in a element and adding style like:
p * { vertical-align: middle; }
... does work, but I don't understand why I have to do that.