Kanbun HTML/CSS Styles
Kanbun styling released under Creative Commons 4.0 (basically: if you use it, even as the basis of your own original code, you must credit me somewhere)
(Best viewed in Chrome, Safari, or Opera)
知
天
命
。
And now flowing with a max height and a nice, white background...
江
南
多
竹。
其
人
習
食
筍
。
毎
方
春
時
、
苞
甲
出
土
、頭角
繭
栗
、
率
以
供
供採
食
。
Instructions
- Download the stylesheet and reference it with <link rel="stylesheet" href="kanbun.css" />
- Change the max-height element on kanbunText as you see fit
- Put the kanbun text in an element with the class "kanbunText"
- Write ruby elements and plain text as normal
- For text with kunten of some kind, create two ruby elements in a span with the class "kanbunBox". Give the first the right-side readings, if present. On the second ruby element, enter a non-breaking space as the rb element via and input the kunten on the rt element.
Kanbun HTML/CSS (漢文のHTML/CSS) by Lani Alden is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.