Line Height adjust not working | Experience Community
Skip to main content
Solved

Line Height adjust not working

  • Nov 12, 2019 8:34 PM UTC
  • 2 replies
  • 983 views

Akdashboard
Level 4 ●●●●
Forum|alt.badge.img+6
I am trying to adjust the line height of a disclaimer in my header, but the HTML doesn't seem to be working. I can make the line height wider, but I cannot seem to make it smaller. it just seems to stay at its default height. Anyone solved this? <td><span style="font-size:11px; LINE-HEIGHT:1px; color:#005589; font-family:Verdana,Geneva,sans-serif;">text</span></td>

Best answer by TomG

line-height only works on block elements. The easiest solution is to change span to div.
View original

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • Nov 12, 2019 8:40 PM UTC
line-height only works on block elements. The easiest solution is to change span to div.

Akdashboard
Level 4 ●●●●
Forum|alt.badge.img+6
  • Author
  • Level 4 ●●●●
  • Nov 12, 2019 8:51 PM UTC
Perfect, thanks as always @TomgG!