PDA

View Full Version : Tiling based on width?




iMasterWeb
Oct 25, 2009, 03:33 PM
Hi! I have a set of four links in my navigation menu. Each one starts off grey and then turns white on rollover (CSS). I'm trying to give each one the same background IMAGE on rollover, but the problem is that they're all different sizes. So my question is:

Is there a way to have a left cap and a right cap on an image and then have the middle repeat along the x axis based on how long the image is?

I hope that's not too hard to understand :o
Thanks for any help!!

-iMaster



angelwatt
Oct 25, 2009, 06:04 PM
There's various tutorials on doing this, Example (http://monkeyflash.com/tutorials/css-image-rollover-navbar/).

You can take the CSS Sprite tactic (http://www.alistapart.com/articles/sprites) as well.