3 replies [Last post]
los
Offline
newbie
Last seen: 18 years 9 weeks ago
Joined: 2005-04-07
Posts: 2
Points: 0

I was wanting to know if when using an

a.link { background-image: url(); }

tag or other link associated tags if it was possible to use an image tag on it

ive tryed it and it doesnt seem to work and im wondering if theres a diffrent name for it.

WHAT IM TRYING TO ACHIEVE:

I made buttons using java but i have to many gifs if i can have 4 gifs that use the same rule as change over hover etc that would be so much more simpler

Thanks for any help

gleddy
gleddy's picture
Offline
Leader
sydney, australia
Last seen: 15 years 5 weeks ago
sydney, australia
Timezone: GMT+10
Joined: 2004-09-21
Posts: 596
Points: 0

Adding background images to a.(References)

not sure if I get you completely but I am assuming you want to do css rollovers without using javascript??

check this tut:
http://wellstyled.com/css-nopreload-rollovers.html

you can use one image and just adjust the background position to create the rollover affect.

is this what you want?

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 1 year 6 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

Adding background images to a.(References)

You may need to set the link to display: block, and give it width and height.

Verschwindende wrote:
  • CSS doesn't make pies

los
Offline
newbie
Last seen: 18 years 9 weeks ago
Joined: 2005-04-07
Posts: 2
Points: 0

THANKS GUYS

Thats exactly what i was looking for ...

Thanks heaps:P