Is there an html code to pad a text into a background for reflowable epub export
Hi all, am trying to create a reflowable epub and i have a few sections of text which i want to be inside a grey background. Pls is there an html code that i can integrate into the script when i use calibre to edit it so that it places the text inside the background. Also, the text is left align, hence i need to make sure that the background somehow squares/rectangles the text and does not extend to the edge of the page right side margin. It should just stay within the confines of the text.
I think this is something related to padding but am unable to find anything specific to what i am looking for. All i see is that the padding cuts across the both left and right borders of the text. That is from the left margin to the right margin. I do not need it to get to the right margin but only stays within the confines of the text and remain reflowable.
Thanks in advance.