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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:47:39+00:00 2026-05-12T05:47:39+00:00

Say I had the following: <select disabled=disabled style=border: 1px red solid; color: black;> <option>ABC</option>

  • 0

Say I had the following:

<select disabled="disabled" style="border: 1px red solid; color: black;">
<option>ABC</option>
</select>

Firefox renders the above with a red border and black text as I expect; but IE does not, it seems to be using native colors for the border and the disabled text. Is there any way for me to be able to style it?

For edit boxes my workaround was to use readOnly instead of disabled so that I can style it, but it seems for combo boxes the readOnly attribute has no effect.

Note: I only need this to work in IE (it’s for an intranet webapp where users must use IE), so IE-specific solutions are fine.

  • 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-12T05:47:39+00:00Added an answer on May 12, 2026 at 5:47 am

    To a good approximation, you can’t style comboboxes at all; they’re not “real” browser objects. See here for more explanation, and a possible workaround: Is it possible to style a select box?

    Alternatively, if you just want to put borders on it, wrap it in a span, and border that.

    <span class="disabled-select">
        <select disabled="disabled">
            <option>ABC</option>
        </select>
    </span>
    

    with

    span.disabled-select {
        border: 1px solid red;
    }
    

    Most other properties, like color, etc, probably won’t have an effect, though.

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

Sidebar

Related Questions

Say I had the following HTML: <h2>Heading <span></span></h2> <ul> <li><a href=# title=I am wanting
I had the following idea: Say we have a webapp written using django which
Say for example you had a shell script that utilises inotifywait in the following
Been having lot's of trouble with this one. Let's say I had the following
Say I had the following values { Great, Good, Ok, Poor, Sucks } I
Let's say I had a MySQL database with the following five records in a
Say I had the following markup: <div></div> <div></div> <div></div> And I use the following
When I say simply say select c, the following code works, but I want
Say I had the following text word1 word2 word3 word4 and the cursor was
Say I had the following code: % Cellmode_subfunction_test.m %% Cell 1 foo(1); %% Cell

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.