I want to display an image in the place of a horizontal rule(HR). But if user turned off "Display Image", then I want to show the simple horizontal rule. Is it possible?

2 answers

0
points
This was chosen as the best answer

Use both the hr and an image and position the image (using position:relative;) so that it covers the hr element.

images off and they'll see the hr element.

Answered over 6 years ago by Tony Crockford
kemie 247
3
points

or set the image as a background of the hr with css

Answered over 6 years ago by kemie