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 211537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:06:16+00:00 2026-05-11T18:06:16+00:00

For my html form, it seems that I’m unable to create cross browser hover

  • 0

For my html form, it seems that I’m unable to create cross browser hover and pressed states for <button>.

I really want this as it creates good user feedback (and a polished look and feel). With <a> it’s easy to do, but it breaks accessibility rules.

What should I do?

As requested, an example:

<form name="contact" action="index.php" method="post">
    <ul>
        <li>
            <label for="name" class="name">Name</label>
            <input type="text" name="name" id="name" size="30" />
        </li>
        <li>
            <button type="submit" class="submit">Send</button>
            <input type="hidden" name="submit" value="yes">
        </li>
    </ul>
</form>

button.submit
{
    background:#F99;
    font-size:3em;
}

button.submit:hover /* white button with colored text */
{
    background:#FFF;
    color:#F99;
}
  • 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-05-11T18:06:16+00:00Added an answer on May 11, 2026 at 6:06 pm

    The pattern I see myself do over and over with accessibility is to start with what’s accessible to everyone and replace it on the client-side with the preferred solution. Then if they don’t have that technology, it degrades gracefully. Specifically we’re talking about javascript here.

    For instance, start by using a normal button in your form. This will work for everyone, regardless of whether or not they have javascript enabled. Then use javascript to replace that button with an anchor tag (so you can use :hover in your css), or simply use javascript to perform the hover effect you want (if you’re using jQuery, you can bind an event to the button’s mouseover).

    This means the small subset of people who don’t have javascript enabled and aren’t using a browser that supports more advanced :hover usage won’t see your hover effect, but you’ll ensure that it always degrades gracefully.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 117k
  • Answers 117k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Another approach is to use a Singleton class. In short,… May 11, 2026 at 10:41 pm
  • Editorial Team
    Editorial Team added an answer From what I'm gathering, the Client Application Services are not… May 11, 2026 at 10:41 pm
  • Editorial Team
    Editorial Team added an answer Press the control key, then press the c key, then… May 11, 2026 at 10:41 pm

Related Questions

For my html form, it seems that I'm unable to create cross browser hover
I've been trying to smoothly animate some Windows Form location but I'm having some
I'm currently using a combination of CSS and Div tags to achieve rounded corners
I have written a standalone Java application that I've packaged into a jar file
I'm a total python noob so please bear with me. I want to have

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.