Quantcast

Creativebits.org

an All Creative World site
Apfhex's picture
325 pencils

Images next to links with CSS, how to?

A lot of sites use CSS to put little images next to links automatically. How do I do this?

Commenting on this Forum topic is closed.

mijlee's picture
502 pencils

Maybe something like this:

a {
display:block;
background-image: url('dir/dir/image_name.gif');
background-repeat: no-repeat;
text-indent: 15px;
height: 15px;
}

----------------------
http://mijlee.com
----------------------

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

  • Butterfingers ad campaign
  • Critique for my logo

Marketplace