Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7871819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:01:20+00:00 2026-06-03T02:01:20+00:00

The :active code works in all browsers, except IE8 (not 9). I’ve looked at

  • 0

The :active code works in all browsers, except IE8 (not 9). I’ve looked at other similar questions to this and have tried different methods. This is the code:

HTML:

<div id="main" style="color:white;font-family:Georgia">
   <div id="button" onmouseup="someFunction()"></div>
   <!-- other things -->
</div>

CSS:

#button
{
  position: relative;
  width: 241px;
  height: 41px;
  background-image:url("images/buttonStatic.png");
  display: none;
}

#button:hover
{
  background-image:url("images/buttonHover.png");
}

#button:active
{
  background-image:url("images/buttonActive.png");
}

The button displays proper, changes to the second button when I hover over it properly, but doesn’t change to the third button when I click on it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:01:21+00:00Added an answer on June 3, 2026 at 2:01 am

    I just tried this out in IE8 and it works fine. Make sure your DOCTYPE specification is declared correctly <!doctype html> and maybe try putting in the IE compatibility meta tag which is something like <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>.

    On a side note, you shouldn’t be using a <DIV> element as a button like that. You should use <button> or <a> with suppressed behaviour.

    Edit

    Here’s my code…

    <!doctype html>
    <html>
        <head>
            <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
            <title>Active Button</title>
            <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.5.0/build/cssreset/cssreset-min.css&3.5.0/build/cssfonts/cssfonts-min.css"/>
            <style type="text/css">
                .button {
                    padding: 4px 12px;
                    border: solid #555 1px;
                    background-color: #ddd;
                    }
                .button:hover {
                    background-color: #eee;
                    }
                .button:active {
                    background-color: #09c;
                    color: #fff;
                    }
    
                .frame {
                    padding: 2em;
                    }
            </style>
        </head>
        <body>
            <div class="frame">
                <button class="button">I'm a Button</button>
            </div>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This basic menu works perfectly in all modern browsers but is not playing ball
I am querying information from Active Directory . I have code that works, but
I have code which as been working against an older Active Directory server and
I have the following code that loads a user's Active Directory DirectoryEntry object from
All, See the code below: function menu() { this.menuitem=[]; this.submenu=[]; this.menuitem[0] = $('div#sivname1'); this.menuitem[1]
I have some code that retreive the users present in different groups in Active
I've got some code which outputs a news archive sidebar. It all works very
This code works like a charm to show/hide table rows based on selected filters.
For some reason, when I try to generate this code all at once, the
In the following .input matches with a tag. The code works fine in all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.