Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1070309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:32:33+00:00 2026-05-16T20:32:33+00:00

I’ve noticed that when trying to use superscript or subscript in the following way…

  • 0

I’ve noticed that when trying to use superscript or subscript in the following way…

<ul>
<li><b>Mean Radius</b>      6,371.0 km</li>
<li><b>Mean Circumference</b>   40,041.47 km</li>
<li><b>Surface Area</b>     510,072,000 km<sup>2</sup></li>
<li><b>Volume</b>       1.0832073 &times; 10<sup>12</sup> km<sup>3</sup></li>
<li><b>Mass</b>         5.9736 &times; 10<sup>24</sup> kg</li>
<li><b>Mean Density</b>     5.5153 g/cm<sup>3</sup></li>
<li><b>Axial Tilt</b>       23.439281&deg;</li>
</ul>

What winds up happening is that the height of the entire line is adjusted for the superscripted or subscripted text and the text on the left in bold is vertically centered in this line. This makes the bolded text look a little weird since it seems like it’s floating slightly above the bottom of the line and isn’t aligned with the other text. I’ve tried making a larger line-height in CSS, but that only makes the effect more visable. Vertical-align also didn’t seem to even do anything. So I’m kinda out of ideas now.

Would anyone know how to have all text in a line (regardless of line-height, subscript, superscript, etc) printed on the bottom of that line?

PS – I’ve viewed this on Chrome 6 and Firefox 3.6.9 and it happens in both, so I’m assuming this is a universal problem, not a browser problem. I’ve also noticed that text always seems to center itself vertically in a line regardless of line-height, so the problem apparently becomes that since a line of text with superscript takes up more ‘height’ than a line of text without, its centering wouldn’t line up with the other line’s.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:32:34+00:00Added an answer on May 16, 2026 at 8:32 pm

    Yes, this is a universal issue; related to how typography works in general.

    There is little to be done for it; but with margins and paddings and all manner of other hoopy stuff you might be able to defeat the effect. Another (exceptionally) dirty hack is to add some invisible character sub/superscripted on each line, staggering the lines so that the effect becomes less visible.

    Also;

    Would anyone know how to have all text in a line (regardless of line-height, subscript, superscript, etc) printed on the bottom of that line?

    That bit doesn’t make sense: If you want them on the bottom of the line, don’t superscript them!

    Alternative: Don’t use sub/super; use real characters: 10²⁴; these are available from U+2070 outwards; to U+2094, as well as U+B2; U+B3, but depending on the font they can look rather wonky.

    Alternative Expanded: If you can get away with computer notation (E+24-style) for the exponents; there are single-character stuff for things like ㎢, ㎨, and the like (Volume and Average Gravitational Acceleration, respectively), these composites begin at U+3380; but again, they might look kind of wonky (or not be present at all).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.