You can do it all using css.

Try this link: http://www.alistapart.com/articles/sprites

Hopefully that helps.

Cheers,

James

From: "Kevin Arrowsmith" <[EMAIL PROTECTED]>
Reply-To: wsg@webstandardsgroup.org
To: <wsg@webstandardsgroup.org>
Subject: [WSG] Image rollovers
Date: Sun, 9 Oct 2005 11:52:56 +0100

Hi guys



I'm creating a site which will be using rollovers but what is the best way
to create the rollovers, use JavaScript or use CSS to control them.



I have used javascript at the moment but I seem to be having some problems
with firefox and images, firefox seems to put some kind of border or magin
on one side of the image, the website is at
http://darkvirus.homeip.net/~darkness/epixel/ if you want to see what I
mean, the site works fine in IE though although when I put the header img in
as an <img> rather than a background both browsers put some kind or border
below the image.



******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to