Created
September 16, 2010 07:10
-
-
Save fumikito/582085 to your computer and use it in GitHub Desktop.
Imitate <ruby> tag
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
/** | |
* Style sheet for rendering <ruby> properly. | |
* | |
* @source | |
*/ | |
ruby{ | |
overflow:hidden; | |
display:inline-table; | |
line-height:inherit; | |
vertical-align:text-bottom; | |
border-collapse:collapse; | |
} | |
rb{ | |
line-height:1.2; | |
text-align:center; | |
display:table-row-group; | |
} | |
rt{ | |
font-size:0.5em; | |
display:table-header-group; | |
text-align:center; | |
text-justify:distribute-all-lines; | |
line-height:1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment