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

asp.net

group:

Seeting image for a button


Seeting image for a button Jimmy
2/23/2004 11:29:35 PM
asp.net:
I have designed a web application with buttons. Is it possible to set image
for a button. So that instead of plain button user will see an image and
makes the GUI as impressive one.
Thanks
Jim

Re: Seeting image for a button Websoftwares NO[at]SPAM Hotmail.com
2/24/2004 5:05:49 AM
Definitely.

Create a css class as follow:

..Button
{
background-image:url(MyImage.gif);
background-color:Transparent;
border-style:none;
}

Then set your button to use this css class.
You can do a lot more with additional css class settings.

Tommy,

[quoted text, click to view]
Re: Seeting image for a button Arvind P Rangan
2/24/2004 1:53:13 PM
In dotnet there is already a webcontrol call imagebutton.
which you can use for this purpose.
it works exactly like button with images.
aRvind.
[quoted text, click to view]

AddThis Social Bookmark Button