The various classes are:- Code:
.button_green { display:inline-block; height:20px; line-height:20px; border:solid 1px #325CAB; position:relative; padding:0px 25px 0px 3px; margin:0px 0px 0px 0px; background-color:#FFFFFF; background-image:url('/images/button_border_green1.gif'); background-position:right; background-repeat:no-repeat; font-family: "Arial", "Verdana"; font-size:10pt; color: #000066; text-decoration:none; font-weight:bold; }
.button_orange_cross { display:inline-block; height:20px; line-height:20px; border:solid 1px #325CAB; position:relative; padding:0px 25px 0px 3px; margin:0px 0px 0px 0px; background-color:#FFFFFF; background-image:url('/images/button_border_orange_cross1.gif'); background-position:right; background-repeat:no-repeat; font-family: "Arial", "Verdana"; font-size:10pt; color: #000066; text-decoration:none; font-weight:bold; }
.button_orange_arr { display:inline-block; height:20px; line-height:20px; border:solid 1px #325CAB; position:relative; padding:0px 25px 0px 3px; margin:0px 0px 0px 0px; background-color:#FFFFFF; background-image:url('/images/button_border_orange_arrLeft1.gif'); background-position:right; background-repeat:no-repeat; font-family: "Arial", "Verdana"; font-size:10pt; color: #000066; text-decoration:none; font-weight:bold; }
.button_red_cross { display:inline-block; height:20px; line-height:20px; border:solid 1px #325CAB; position:relative; padding:0px 25px 0px 3px; margin:0px 0px 0px 0px; background-color:#FFFFFF; background-image:url('/images/button_border_red_cross1.gif'); background-position:right; background-repeat:no-repeat; font-family: "Arial", "Verdana"; font-size:10pt; color: #000066; text-decoration:none; font-weight:bold; }
.drop_shadow { float:left;
background: url('/images/drop_shadowAlpha.png') no-repeat bottom right !important;
background: url('/images/drop_shadow.gif') no-repeat bottom right;
margin: 10px 0 0 10px !important;
margin: 10px 0 0 5px;
}
.drop_shadow span { display: block;
position: relative;
margin: -5px 5px 5px -5px;
padding:2px 0px 0px 1px;
}
To use in a page have:-
Code:
<span class="drop_shadow" style="float:right">
<span>
<a onclick="window.location='#top';set_cookie_jar('textarea');" id="ctl00_main_content_frmAdd" class="button_green" href="javascript:__doPostBack('ctl00$main_content$frmAdd','')">Add</a>
</span>
</span>
My example uses an asp.net linkbutton control, but I have posted the rendered HTML so you can see how it works.
I've also attached a zip containing the images I used.
If you need anything else, let me know.
<edit>The style="float:right" was because I wanted the button to align to the right of another element. You could dispense with this or change it accordingly.</edit>
Bookmarks