Proposition : enhancement of tag sub/sup
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. ;)
This commit is contained in:
parent
36dcc996d3
commit
1f6b957281
1 changed files with 13 additions and 1 deletions
|
@ -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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue