CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/21/2008 5:57:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
utlandsfantomen
Asp.Net User
Style or theme buttons2/21/2008 5:57:11 PM

0/0

Hello,

I want to style the ordinary buttons (asp:Button) to create some nicer looking buttons than the ordinary ones. I want to do more than just set the background color of the button, what I would really like to do, is to load an image so that I have the buttons look exactly how I want them to look. Is there any way to do this, or do I have to fall back to imagebuttons/user controls and go through the current project replacing all ordinary buttons?

 Cheers!

/Eskil


The more you learn you understand that you really don't know anything
-By someone I don't remember
osbornm
Asp.Net User
Re: Style or theme buttons2/21/2008 7:05:54 PM

0/0

Here is a greate article on creating css buttons. http://www.456bereastreet.com/archive/200705/creating_bulletproof_graphic_link_buttons_with_css/ If you have to use the asp:button then you can use the same css attributes and use the CssClass attribute fo the asp.net button.


Matthew M. Osborn
www.osbornm.com
utlandsfantomen
Asp.Net User
Re: Style or theme buttons2/21/2008 8:28:18 PM

0/0

Thanks!

Simple is better. I disregarded the strenght of Css once more.

Can't follow the example you provided as they form their own css-buttons but I did try the background property where you can set the background images, that works and so you can style them nicely.

Know of any way how to make them work with more than one background image? The example you provided positions the image for the corners, since I can't figure out a way of doing that in Css for an asp:button as it's only one element, do you know?

Cheers!

/Eskil


The more you learn you understand that you really don't know anything
-By someone I don't remember
osbornm
Asp.Net User
Re: Style or theme buttons2/21/2008 8:38:04 PM

0/0

well your limited with what you can do if your just trying to uses the asp:button however what you could do is if you know you want all your buttons to be like 75px wide just create an image that is that width and set the background of the image to transparent save it as gif or png and then set it to the background of the button. You could also use the examplei should you and make your server call using javascript to execute what ever you need to do server side.


Matthew M. Osborn
www.osbornm.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
IMovie 6 & IDVD: The Missing Manual Authors: David Pogue, Pages: 499, Published: 2006
Visio 2007 For Dummies Authors: John Paul Mueller, Debbie Walkowski, Pages: 387, Published: 2006
Beginning SUSE Linux: From Novice to Professional Authors: Keir Thomas, Pages: 698, Published: 2006
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
How to Do Everything with Microsoft Office Word 2007 Authors: Guy Hart-Davis, Pages: 504, Published: 2007
ILife '05: The Missing Manual Authors: David Pogue, Pages: 724, Published: 2005
Visual Quickstart Guide: iMovie HD6 & iDVD 6 Authors: Jeff Carlson, Pages: 0, Published: -1
The Everything Baby Shower Book: Throw a Memorable Event for Mother-to-Be Authors: Sabrina Hill, Joni Russell, Pages: 302, Published: 2008
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Foundations of Popfly: Rapid Mashup Development Authors: Eric Griffin, Pages: 194, Published: 2008

Web:
Vista-Buttons.com - Create Button Themes To open Theme editor click Tools/Theme editor in the Main menu. Theme editor helps you create your own themes or modify existing ones. To select a button ...
photoshop web buttons, graphics, icons, textures, text effects Theme Button Software : Photoshop 6.0 Level : Intermediate ... Layer > Layer Style > Bevel & Emboss Try to experiment with the values. ...
Darkness Returns GTK+ Theme ~ CrunchBang Wiki May 13, 2008 ... style "theme-default" class "GtkButton" style "theme-button" class "GtkCombo " style "theme-button" class "GtkRange" style "theme-wide" ...
XP Web Buttons - Menu Parameters buttonType, Button type (0 - blue style xp theme buttons, 1 - blue style xp theme buttons on mouseover only, 2 - silver style xp theme buttons, ...
Disable the style “Windows and Buttons” for your desktop theme. This setting enables you to modify some desktop theme settings like the Windows styles, buttons, schemes and fonts.
15 Seconds : Code in Style with ASP.NET Themes For example, a button skin applies to all the button controls in the page. .... Themes are similar to CSS style sheets in that both themes and style sheets ...
Property beats style, style beats theme, theme beats scissors ... Property beats style, style beats theme, theme beats scissors? ...