Forum:Padding of inline elements

red text text produces:

red text

text

As you can see its the area within the borders of the inline element that get colored.

reducing line-height to 1.0 one does not reduce the size of the colored area

instead it would cause the 2 boxes (with 'text' inside) to overlap.

This creates trouble when the lower one is colored because it cuts off the descenders on the line above.

I have tried everything to reduce the colored padding within the box but nothing works.

Granpa 21:59, August 17, 2011 (UTC)

Are you asking for something like that? 22:25,8/17/2011 22:25, August 17, 2011 (UTC)


 * No. I am trying to reduce line-height to squeeze lines together but when I do that and need to highlight part of a line it overwrites the descenders of the line above.
 * You can see this happen yourself just by selecting the text in the code at the very top of the page. The descending part of the letter 'g' in "background" is over written when the line below it is selected.
 * Granpa 00:19, August 18, 2011 (UTC)