Closed Thread
Results 1 to 3 of 3

Thread: Help! CSS Rollovers Work only in Opera, not Firefox or Safari

  1. #1
    bbender is offline Newbie
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Help! CSS Rollovers Work only in Opera, not Firefox or Safari

    Hey all:

    I am new to this thread and just getting started in web development. Been in print design for 10 years and I'm trying to build a nice web portfolio and really need these rollovers to work because the Mistral font is an integral part of the header font scheme. It's a png file with the word "specials" changing from white to gold on a hover, both words stacked in the two colors in the same file, that links to another page called "specials.html". I first tried the lengthy JavaScript rollover code and had the SAME problem with the SAME browsers! I saw the CSS rollover trick and thought it was way easier and would likely work. I was wrong. ANY help would be greatly appreciated!!

    The HTML code sample for the div link is this:

    HTML Code:
    <div id="cateringspecialfooter"><a href="special.html">
    </a></div>
    
    and my stylesheet for the div looks like this:
    
    #cateringspecialfooter a {
    display:block;
    width: 200px;
    padding:10px 10px 20px 7px;
    font: bold 13px sans-serif;;
    background: url(../images/specialcssrollover.png) 0 0 no-repeat;
    text-decoration: none;
    }
    #cateringspecialfooter a:hover { 
    background-position: 0 -33px;
    }
    Any help would be greatly appreciated, and I promise to make myself indispensable for anyone else who has some beginner web development issues.

    Glad to be aboard, and thanks to everyone in advance!!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Nov 2009
    Location
    London
    Posts
    866
    Blog Entries
    3
    Rep Power
    14

    Re: Help! CSS Rollovers Work only in Opera, not Firefox or Safari

    I recommend using my tutorial I made just a second ago on this very subject, it's very easy to use and works the best:

    CSS Tutorial: How To Create Hover / Rollover Image Menu

  4. #3
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: Help! CSS Rollovers Work only in Opera, not Firefox or Safari

    What's your doctype?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. cols wont work with shift-jis and firefox
    By Alhazred in forum HTML Programming
    Replies: 7
    Last Post: 05-11-2011, 01:38 AM
  2. google chrome firefox opera vs. window name code pls?
    By raten in forum Visual Basic Programming
    Replies: 3
    Last Post: 04-27-2011, 09:43 AM
  3. CSS Rollovers not working in Firefox..
    By omg_stfu in forum JavaScript and CSS
    Replies: 11
    Last Post: 09-03-2009, 08:12 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts