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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:12:12+00:00 2026-05-14T03:12:12+00:00

The following is an section of my CSS file plus some HTML. Can anyone

  • 0

The following is an section of my CSS file plus some HTML. Can anyone tell me when I put class=”containerHeader selected” (as is on Test Header A) the background color is not being set to Red?

div#builderContainer
{
  margin-top: 15px;
  width: 390px;
  height: 700px;
  border: solid 0px #CCCCCC;        
  background-repeat: no-repeat;    
}

div#builderContainer .container
{
  display: none;
  -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; /* Corner radius */
  border: solid 1px #999999;

}

div#builderContainer .container div:hover 
{
  background-color: #EEEEEE;
}

div#builderContainer .containerHeader
{
  -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; 
  background: #93c3cd url(images/ui-bg_diagonals-small_50_93c3cd_40x40.png) 50% 50% repeat; 

  border-bottom: solid 0px #999999;    

  margin: 0px;      
  margin-top: 25px;      
  padding: 10px;    

  /* display: none;  */

  border: solid 1px #999999;    
  font-weight: bold;
  font-family: Verdana;
  background-color: #FFF;        
  cursor: pointer;    
  vertical-align: middle;
}

div#builderContainer .containerHeader:hover
{
  background: #ccd232 url(images/ui-bg_diagonals-small_75_ccd232_40x40.png) 50% 50% repeat;
}

div#builderContainer .containerHeader:active
{
  background: #db4865 url(images/ui-bg_diagonals-small_40_db4865_40x40.png) 50% 50% repeat; 
}

div#builderContainer .containerHeader .selected
{
  background-color: Red;        
}
<div id="builderContainer">

  <div class="containerHeader selected" id="CHA">Test Header A</div>				
  <div class="container" id="CA"></div>

  <div class="containerHeader" id="CHB">Test Header B</div>						
  <div class="container" id="CB"></div>

</div>
  • 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-14T03:12:13+00:00Added an answer on May 14, 2026 at 3:12 am

    Use selector div#builderContainer .containerHeader.selected without the space.

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

Sidebar

Related Questions

I have the following HTML: <DIV class=foo bar></DIV> I'm trying to create a CSS
I have the following HTML code: <ul class=blogEntry> <li class=title section> <span><asp:Literal ID=litTitle runat=server
I have the following HTML code: <section class=gallery> <a href= id=link-prev>prev</a> <a href= id=link-next>next</a>
I have the following construct in my HTML document: <div class=content> <section class=column></section> <aside
Suppose I have following html page. <html> <head> <link type=text/css rel=Stylesheet href=css/some.css /> </head>
I have the following html to create a dropdown menu: <li class=user-section user-section-original> <img
I have the following section to print the ant build info into a file.
I have the following in the section of my page: <head> <link rel='stylesheet' href='style.css'
I have the following section added to my web.config: <system.webServer> <caching> <profiles> <add extension=.html
I made the following content sliding section: http://jsfiddle.net/JaMYJ/ As you can see, the height

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.