Download Anchor

S

shapper

Hello,

I need a download link with the text "download" and an icon on the
right.
My idea is to use an anchor and have the icon placed with CSS as a
background image.

Is this the correct approach?

Thanks,
Miguel
 
A

Adrienne Boswell

Gazing into my crystal ball I observed shapper <[email protected]>
writing in @g31g2000yqc.googlegroups.com:
Hello,

I need a download link with the text "download" and an icon on the
right.
My idea is to use an anchor and have the icon placed with CSS as a
background image.

Is this the correct approach?

Thanks,
Miguel

Sure, you could do something like:

<a href="mydownloadthing.rar" title="Download in RAR format"
class="download">Download mydownloadthing (size)</a>

a.download {
background-repeat:no-repeat;
background-position:right;
padding-right:20px;}

a.download:link, a.download:hover, a.download:focus {
background-image: url(download.png);
}
a.download:visited {
background-image: url(smile.png);
}
a.download:active {
background-image: url(lightening.png);
}
 
D

dorayme

shapper said:
I need a download link with the text "download" and an icon on the
right.
My idea is to use an anchor and have the icon placed with CSS as a
background image.

Is this the correct approach?

It is not "the" correct approach but it is a perfectly sound one. There
are other sound approaches where, for example, you want the double
whammy of making both text and image links, arguably quite useful for
many users.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top