From 1f6b957281919e6a46ae747dfd17e450a1f19997 Mon Sep 17 00:00:00 2001 From: Nicolas Hoffmann Date: Mon, 13 May 2013 12:32:48 +0300 Subject: [PATCH] Proposition : enhancement of tag sub/sup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Proposition helps to avoid bad line-height rendering caused by sub and sup tags. (use these tags on big blocks of texts with and without the fix to see the difference) In french : la proposition aide à éviter des interlignages disgracieux causés par les balises sup et sub. ;) --- css/knacss.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/css/knacss.css b/css/knacss.css index 9a77b74..54c921d 100644 --- a/css/knacss.css +++ b/css/knacss.css @@ -138,6 +138,18 @@ mark { padding:2px 4px; background: #ff0; } +/* avoid bad line-height */ +sup, +sub { + vertical-align: 0; + position: relative; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} table { margin-bottom: 1.5em; } @@ -534,4 +546,4 @@ textarea { body { -webkit-text-size-adjust: 100%; } -} \ No newline at end of file +}