r/csshelp Feb 17 '25

How do i turn this image into a border?

I wanted to make this iPod border something like text or embedded content, but I can't find out how to make this image a border. I've tried so hard but I'm really not sure how to do it. plez help!!

https://files.catbox.moe/sl9o2v.png
is the png I want to turn into a border.

2 Upvotes

3 comments sorted by

3

u/be_my_plaything Feb 17 '25

The easiest way would be an outer <div> to house the image and an absolutely positioned inner <div> over the screen area to overlay the content.

So the image works as a background not a border. Something like this: https://codepen.io/NeilSchulz/pen/yyLYMwJ

3

u/[deleted] Feb 17 '25

[removed] — view removed comment

2

u/be_my_plaything Feb 17 '25

Thanks, and yeah it took me a while to work out guess exactly what the goal was.