Main Page | Report this Page
.NET DotNet Forum Index  »  ASP.NET Forum  »  Overlaying text on a graphic....
Page 1 of 1    

Overlaying text on a graphic....

Author Message
Mr.Magic...
Posted: Fri Oct 30, 2009 11:13 am
Guest
For a website I did for work, they had a graphic they wanted for the buttons
with text on them. The problem was that every different button needed to be
created with the text on it. Is there a way to load a graphic and then put
text on top of it through .Net/CSS/However so I can use a blank button and
then write the text on it so I don't have to keep going back to our graphic
designers?

TIA - Jeff.
 
Gregory A. Beamer...
Posted: Fri Oct 30, 2009 12:31 pm
Guest
"Mr.Magic" <Mufasa at (no spam) NoWhere.Com> wrote in
news:eI$oQRYWKHA.4140 at (no spam) TK2MSFTNGP06.phx.gbl:

Quote:
For a website I did for work, they had a graphic they wanted for the
buttons with text on them. The problem was that every different button
needed to be created with the text on it. Is there a way to load a
graphic and then put text on top of it through .Net/CSS/However so I
can use a blank button and then write the text on it so I don't have
to keep going back to our graphic designers?


Within .NET, you can use GDI+ to create a JPG or GIF graphic. It can be
done "on the fly", if you would like. Personally, I would opt for a third
party graphics lib instead, because the GDI+ stuff tends to look a bit ugly
with web graphics. NOTE: Have not tested since 1.x, so the rules may have
changed. ;-)

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: at (no spam) gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
bruce barker...
Posted: Fri Oct 30, 2009 7:26 pm
Guest
trival, just use an asp:button, specify text and set the
background-image with css.

-- bruce (sqlwork.com)



Mr.Magic wrote:
Quote:
For a website I did for work, they had a graphic they wanted for the buttons
with text on them. The problem was that every different button needed to be
created with the text on it. Is there a way to load a graphic and then put
text on top of it through .Net/CSS/However so I can use a blank button and
then write the text on it so I don't have to keep going back to our graphic
designers?

TIA - Jeff.

 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Tue Dec 08, 2009 3:31 pm