Displaying a border image over another image
So this is what i'm sitting at
not sure how to achieve this kind of an effect
note: the border is a png image
11 Replies
this is what i'm trying to achieve
the border is present underneath the image seen
probably doing the whole thing in svg is the easiest.
but with a lot of calcs you can do something like this in css
https://codepen.io/MarkBoots/pen/bGJJpMj
🤠ohw oops, now i see the note that you have the border as an image.
can you share it?
oh my god witchcraft
this is insane wow
you would need to have the white part transparent as well. and probably only the image shape, not the part where the text goes.
but am not sure if that is the easiest to do. you will get stuck when you need to scale things. what if the text gets larger / screen smaller etc. there will be not enough room for the text and scaling a png will cause some pixelation.
so yea, svg or css imo is better
ahhh i see
i'll do that then
i'll take my time dissecting what you did tho
thanks a lot!
good luck 😉
make sure you copy or fork the pen. I can't guarantee i will keep it for long on my codepen
yep done you can delete it now thanks
Thanks