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

Line Height adjust not working

  • November 12, 2019
  • 2 replies
  • 850 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.

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • November 12, 2019
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 ●●●●
  • November 12, 2019
Perfect, thanks as always @TomgG!