html – not working inside in Firefox


Besides the fact that the strong works properly in the current firefox version i would not recommend to rely on the browsers default styles as they could change whenevery without you noticing.

Set your font-weight explicitly instead to ensure a consistent display of your text across browsers.

So to answer your question:

Is it a proper way to fix this by applying font-weight: bold; to ?

Yes, 100%!

I extended your snippet with the neccessary css.

strong {
  font-weight: bold;
}
<ul>
  <li>Normal</li>
  <li><strong>Strong</strong></li>
  <li>
    <p>
      <strong>Strong</strong>
    </p>
  </li>
</ul>

<p>
  <strong>Strong</strong>
</p>



Source link

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here