all groups > asp.net webcontrols > october 2004 >
You're in the

asp.net webcontrols

group:

image and text


image and text seep
10/30/2004 8:54:56 PM
asp.net webcontrols:
Hello,

I have an image of a light bulb.. I want to write xome
text in front of the image...

How can I do this?

RE: image and text J.W.
10/30/2004 10:59:01 PM
Well, an easy way to do this:

1. Create a <DIV> tag and set the same width and height of the image, and
set the background-image with the image, no repeating.
2. write text inside DIV tag.

You are done.



[quoted text, click to view]
RE: image and text seep
10/31/2004 1:11:10 PM
How do I perform this at runtime?
I want to load the text in front of the image at runtime...

Thanks
[quoted text, click to view]
Re: image and text Scott M.
10/31/2004 9:59:16 PM
Put a Label control and an Image control on your page, next to each other.

At design-time or run-time, set the ImageURL property of the Image control.
At design-time or run-time, set the Text property of the Label.

That's it. .NET 101.


[quoted text, click to view]

AddThis Social Bookmark Button