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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:24:24+00:00 2026-05-12T06:24:24+00:00

Is it possible to change the appearance of an html link when it’s disabled?

  • 0

Is it possible to change the appearance of an html link when it’s disabled? For example using something like:

a.disabled
{
  color:#050;
}

<a class="disabled" disabled="disabled" href="#">Testing</a>

The example above does not seem to work with IE but works for Firefox, on IE it remains gray even when I set the colour in the style. If I remove the disabled="disabled" however it works.

  • 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-12T06:24:24+00:00Added an answer on May 12, 2026 at 6:24 am

    The :disabled pseduo class only works with input fields, like text, radio, checkbox, etc. and applies when you give the element the attribute `disabled=”disabled”. IE6, however, doesn’t recognize the pseudo class, so you’ll need to use a class separately to make it work.

    <input type="text" value="You can't type here" disabled="disabled" class="disabled" />
    

    can be styled with

    input[disabled="disabled"], input.disabled {
        /* whatever you want */
    }
    

    The pseudo class will apply to modern browsers while the class will cover IE6.

    Like Radeksonic said, if you want the disabled CSS to appear on other elements, like anchors, you’ll just need to make and use a class. There’s no disabled attribute for <a>s

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

Sidebar

Related Questions

Is possible change background-color on same td in fullcalendar? for example: I like have
Is it possible to change appearance of 'fontselect', 'fontsizeselect' and 'formatselect' selectboxes something like
Is it possible to change the color or appearance of the scrollbar in a
Is it possible to change the default black like color of the UIPopOver to
Possible Duplicate: How to change appearance of URL from within a PHP script I
Possible Duplicate: Change the URL in the browser without loading the new page using
Is it possible to change the color of View Results text in below ?
Is it possible to change object's value not directly? For example a = {x:
How can i change the appearance (not the color) of a scrollbar within a
Is is possible to change the item selection focus color and text color in

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.