speedmax (owner)

Revisions

gist: 165811 Download_button fork
public
Public Clone URL: git://gist.github.com/165811.git
Embed All Files: show embed
button.css #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
a.button {
background:transparent url(http://www.siterest.com/images/button_r.png) no-repeat scroll right top;
color:#000000;
display:block;
float:left;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:bold;
height:32px;
margin:0 6px 0 0 !important;
padding:0 12px 0 0 !important;
text-decoration:none;
}
a.button span {
background:transparent url(https://www.siterest.com/images/button_l.png) no-repeat scroll 0 0;
display:block;
line-height:15px;
padding:6px 5px 5px 18px;
}
a.button:hover span {
text-decoration:underline;
}
 
view.html.erb #
1
<%= link_to '<span>something</span>', 'http://something.com', :class => 'button' %>