I have a paragraph and I would like to visually mark the beginning and end of the paragraph for the user.
I have successfully displayed a background image in the upper left corner, but I am unsure how to position the background image in the lower right corner. Here is my CSS for positioning the image in the upper left:
p[class] {
background-image: url("../../image/my_image.gif");
background-position: left top;
background-repeat: no-repeat;
}
I am seeking a solution that only uses CSS, without adding any additional HTML elements! I cannot use pseudo-elements in this case due to the paragraph already having pseudo-before and pseudo-after elements. So, my question is:
How can I position a background image in the top left and bottom right corners of an HTML element using only CSS (without pseudo-elements or additional HTML elements)?