> On Dec 27, 2015, at 06:13, Jeff Zeitlin <edi...@freelancetraveller.com> wrote: > > Going over some of my sites pages, I've noticed that when a line of text > has a superscript in is, it seems to open the space between it and the > line above a little. What I'm wondering is simple: How do I prevent > this?
This is what I use: > sub, sup { > position: relative; > vertical-align: baseline; > } > > sub { > bottom: -.25em; > } > sup { > top: -.3em; > } Control the font-size to your taste (typically it should be a little smaller than the main text). (ideally I’d use `ex` units for `top` and `bottom`, but support for that is _still_ spotty) > On Dec 27, 2015, at 06:17, Tom Livingston <tom...@gmail.com> wrote: > > Google 'normalize.css'. There are styles in this for sup and sub. I'm not > in a position to copy/paste the relevant bits, sorry. I’ve always wondered why that stylesheet sets the line-height on the `sub` and `sup` to `0`. I never had a problem with letting the line-height inherit from the parent element (default behaviour). Philippe -- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/