December 5, 2018 at 3:13 am #279879
Is a CSS method of achieving a border around two elements placed on top of each other to give the effect of a single shape?
So in the example, turning the red border on the div and span in a single shape, losing the border that falls inside the div area. Could shape-outline be used?
ThanksDecember 5, 2018 at 8:17 am #279885
No, there isn’t.
HTML objects are rectangular and borders (and outlines) follow those shapes.
You might be a manage something with a clip-path or, for all practical purposes, in this case I’d use an SVG shape.December 5, 2018 at 8:30 am #279888
Thanks, yeah an SVG shape does seem the way to go. Clip-path won’t give a border around the clipped shape as far as I can see, it applies the border to the div/element.December 8, 2018 at 5:35 pm #280006
You must be logged in to reply to this topic.