Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5: <sup> <sub> inconsistent styling #31546

Closed
misterybodon opened this issue Aug 28, 2020 · 5 comments · Fixed by #31700
Closed

v5: <sup> <sub> inconsistent styling #31546

misterybodon opened this issue Aug 28, 2020 · 5 comments · Fixed by #31700

Comments

@misterybodon
Copy link

misterybodon commented Aug 28, 2020

Context

  • Booststrap Version: 5.0.0-alpha1/css/bootstrap.min.css
  • Mozilla FIrefox 79.0, either locally or codepen:

CODE

<ul class='breadcrumb'>
  <li class='breadcrumb-item'>
    <sub>0</sub>H
    <sup>0</sup>
  </li>
</ul>

Output
screen

@misterybodon misterybodon changed the title <sup> <sub> inconsistent styling v5: <sup> <sub> inconsistent styling Aug 28, 2020
@mznet
Copy link

mznet commented Aug 31, 2020

@misterybodon This problem can be occurred when the parent element has display:flex style. In your code, the parent tag li.breadcrumb-item which has sup and sub has flex style.

Under display:flex, sub and sup's baseline should be modified.

@mznet
Copy link

mznet commented Sep 2, 2020

@misterybodon The inconsistency could be fixed if align-items-baseline class is added to the parent tag which has display: flex

@ghost
Copy link

ghost commented Sep 8, 2020

Screenshot 2020-09-08 at 11 41 20 AM
"0H0"
this may work you should try this

@ghost
Copy link

ghost commented Sep 9, 2020

actually i am new to it ...
so what did you ask actually about the code that symbolise H or something else ...
if no please correct me

@mdo
Copy link
Member

mdo commented Sep 17, 2020

See #31692.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants