search

Home  >  Q&A  >  body text

Equivalent sized html elements to normalize title spacing

I have an html element that exists on some elements but not others. For those elements that don't exist, I need to have a blank html element of equal size. This ensures that the spacing doesn't stray.

I tried adding the same element but placing hidden, hidden="hidden" and style="visibility:hidden;" in the encapsulating element div, but this causes the build to fail. Any ideas?

P粉722521204P粉722521204516 days ago565

reply all(1)I'll reply

  • P粉413307845

    P粉4133078452023-09-14 11:52:51

    You can try using opacity: 0 instead of visibility.

    reply
    0
  • Cancelreply