I am trying to make a CSS replace menu that shows up as an image file that was chopped in 10 pieces. So far, it works peaches and cream and I even get the links working, I just need to do the rollover switch to another image which I can't seem to do.
Here's the base code:
Then I add this to make the placeholders go away:Code:<div id="left"> <div id="menu_content"> <div id="liquinas"><span>Liquinas</span></div> <a href="http://liquinas.com"><div id="redprologue"><span>Prologue</span></div></a> <a href="http://liquinas.com/design"><div id="design"><span>Design</span></div></a> <a href="http://liquinas.com/development"><div id="development"><span>Development</span></div></a> <a href="http://liquinas.com/photoshop"><div id="photoshop"><span>Photoshop</span></div></a> <a href="http://liquinas.com/vector"><div id="vector"><span>Vector</span></div></a> <a href="http://liquinas.com/media"><div id="media"><span>Media</span></div></a> <a href="http://liquinas.com/blog"><div id="blog"><span>Blog</span></div></a> <a href="http://liquinas.com/services"><div id="services"><span>Services</span></div></a> <a href="http://liquinas.com/contact"><div id="contact"><span>Contact</span></div></a> </div> <div id="stats"> <span>74 Files</span><br /> <span>WD Rank #756,634</span><br /> <span>1,254 Served</span> </div> </div><!-- End left -->
Then the code to replace it with my image menu which consists of 10 PNGs:Code:#liquinas span { display:none; } #prologue span { display:none; } #design span { display:none; } #development span { display:none; } #photoshop span { display:none; } #vector span { display:none; } #media span { display:none; } #blog span { display:none; } #services span { display:none; } #contact span { display:none; }
At this point I have my full working menu, now I want to add a rollover by switching it to another img (I'm switching it to a side-by-side flip later, I just want to achieve a rollover change first).Code:#liquinas { width:118px; height:57px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/1.png); background-repeat:no-repeat; } #prologue { width:118px; height:29px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/2.png); background-repeat:no-repeat; } #design { width:118px; height:29px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/3.png); background-repeat:no-repeat; } #development { width:118px; height:29px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/4.png); background-repeat:no-repeat; } #photoshop { width:118px; height:29px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/5.png); background-repeat:no-repeat; } #vector { width:118px; height:29px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/6.png); background-repeat:no-repeat; } #media { width:118px; height:29px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/7.png); background-repeat:no-repeat; } #blog { width:118px; height:29px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/8.png); background-repeat:no-repeat; } #services { width:118px; height:29px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/9.png); background-repeat:no-repeat; } #contact { width:118px; height:36px; max-width:118; background-color:#FFFFFF; background:url(images/menu_unselected/10.png); background-repeat:no-repeat; }
So I try
Which doesn't seem to do anything at all. I'm pretty sure I'm doing this wrong, and I've tried swapping divs for spans and LIs but I can't seem to get it right.Code:#contact a:hover { width:118px !important; height:36px !important; max-width:118; background-color:#FFFFFF; background:url(images/menu_selected/10.png); background-repeat:no-repeat; }
Can anyone point me in the right direction with this?
Thanks in advance.



Reply With Quote

Bookmarks