Line Height adjust not working | XM Community
Solved

Line Height adjust not working

  • 12 November 2019
  • 2 replies
  • 197 views

Userlevel 7
Badge +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>
icon

Best answer by TomG 12 November 2019, 21:40

View original

2 replies

Userlevel 7
Badge +27
line-height only works on block elements. The easiest solution is to change span to div.
Userlevel 7
Badge +6
Perfect, thanks as always @TomgG!

Leave a Reply