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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:00:33+00:00 2026-05-26T18:00:33+00:00

I have the following css settings: .dropdown dt { background:#e4dfcb !important; } .dropdown-disabled {

  • 0

I have the following css settings:

.dropdown dt { background:#e4dfcb !important; }
.dropdown-disabled { background:#dddddd important; color:#aaaaaa; }

So in my html code, I purposely put dropdown-disabled class in there, which should force an override of the background color… but is not happening.

<dt id="dtTestID" class="dropdown-disabled">
   <a href="#"><span>Hello World</span></a>
</dt>

What am I doing wrong? Ugh…

EDIT:

Ok, I’ve updated the code to the following:

.dropdown-enabled { background:#e4dfcb; }
.dropdown-disabled { background:#dddddd; }

.dropdown dt { background:#e4dfcb !important url(arrow.png) no-repeat scroll right center; }
.dropdown dt a { display:block; padding-right:20px; border:1px solid #d4ca9a; width:150px;}
.dropdown dt a:hover { color:#ffffff; border: 1px solid #d0c9af;}
.dropdown dt a span { color:#816c5b; cursor:pointer; display:block; padding:5px; }
.dropdown dt a span:hover { color:#ffffff; cursor:pointer; display:block; }

<dt id="dtTestID" class="dropdown-disabled"><a href="#"><span>Hello World</span></a></dt>

This works for the background, I just need to put dropdown-enabled everywhere else. However, I now run into another (similar) problem, I can’t override the link’s style. I tried the following…

Overriding the color to !important, and set my disabled to a new color.

.dropdown dt a span { color:#816c5b !important; cursor:pointer; display:block; padding:5px; }
.dropdown-disabled { background:#dddddd; color:#aaaaaa; }

Any idea?

  • 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-26T18:00:33+00:00Added an answer on May 26, 2026 at 6:00 pm

    Found a work around…
    I had to remove the link from my dt, then update my css with the following:

    .dropdown-enabled { background:#e4dfcb; }
    .dropdown-disabled span { background:#dddddd; color:#aaaaaa; }
    

    After that I need to use jQuery to monitor mouse click on other element to manually toggle to enabled… and reinsert the link back.

    var dt = jQ(this).find("dt");
    // put back the look of enabled the element
    dt.removeClass("dropdown-disabled");
    dt.addClass("dropdown-enabled");
    
    // put back the link in there to trigger the dropdown
    var newhtml = jQ('<a href="#"></a>').append(dt.html());
    dt.html(newhtml); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following css code: #Layer3 { position:absolute; width: 89%; height: 40%; left:
I have the following css code. button.png is image where 3 button states are
I have the following CSS code .editable:before { content: url(../images/icons/icon1.png); padding-right:5px; } this is
I have the following HTML. <ul> <li> <a>asdas</a> </li> </ul> In my CSS stylesheet
I have the following file: <html> <head> <title></title> <link rel=css type=text/css href=/empty.css title=css />
I have the following html code <!DOCTYPE html> <html lang=en> <head> <meta name=viewport content=width=device-width;
I have the following HTML and CSS: <div class=content> <div class=leftbg></div> <div class=innercontent><p>Some content
I have the following code: HTML: <div id=clickme> Click me :-) </div> <div id=info
I have the following code: <!DOCTYPE html> <html lang=tr> <head> <meta charset=utf-8> <title>Bootstrap</title> <!--
I have the following CSS class: .hidden { visibility: hidden; position: absolute; } I

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.