I am working with a circle image that I need to resize based on its placement. This image is intended to be a background for a character or two of text.
Specifically, whenever the number 1 or 2 appears in a certain element, I want the circle to appear behind the text at that location. The text may contain other images as well, which will be sized using ems units for proper alignment.
For demonstration purposes, here is the image:
Essentially, this is how I want the text to function:
This is a paragraph (1) of the text.
In this example, (1) should display as a shrunken image with the numeral 1 centered inside it. I may adjust the size later, but initially, it can be around 1.2 em. I am implementing this with JavaScript and would appreciate guidance on defining the CSS style.
Additionally, the symbol/text combination must be contained within a table cell floating to the right of a relatively positioned div, inside another absolutely positioned div. I hope these design considerations do not interfere with the desired display results. Thank you.