Hello,
I am creating an application and I need to put text and other widgets inside an image.
How can I do it?
Hi Sara,
To add text on top of an image do this:
CSS:
.image-with-text { position: relative; } .image-with-text > .text-overlay { position: absolute; top: 3px; left: 3px; }
For the input widget you can do something similar, place the input widget inside the container, and add a new class to it, and set the top/bottom left/right properties of that class to position the input.
Regards,
Daniel
Daniël Kuhlmann wrote:
Hi! Tks!
It Works :)
It depends - do you need to do this as a way to present something to the user? You could achieve this with CSS properties like position.
Do you need to manipulate what you're placing over the image? Loading and storing it? You might need to resort to Javascript and SVG elements to draw over it.
Cool!