I am trying to convert a simple HTML with H1 tags. I want to add padding-right: 20px; to a span within H1.
While padding-right works for
p tag, it doesn’t work for
Please find attached sample HTML, converted doc and desired doc
H1WithPaddingTesting.zip (15.6 KB)
If you look into the HTML, have created 4 sections testing different options. In Section 1 we get the desired padding by using
but that would not the desired way of doing as the padding taken up by spaces may differ based on fontname and fontsize. Ideally we would want HTML in Section 2 to convert to word as it renders in browser as that’s one of the standard ways of doing it in CSS/HTML
Can you please look into this and share the best approach to get the desired result using CSS/HTML