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
501 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

Do you need a great new logo?

If you need a logo for your company or product you can get it done with us.
In our logo store you can pick from over 28,000 pre-made logos that will be customized to your name for free or you can post a contest for us for just $250 and our designers from all over the world will submit dozens of logo design suggestions to your specific needs.

Marketplace