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

  • Home
  • SEARCH
  • 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 8312529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:11:45+00:00 2026-06-08T20:11:45+00:00

I have the following code (generated by Drupal; I have no control over it.)

  • 0

I have the following code (generated by Drupal; I have no control over it.)

<div class="spacer">
    <div class="region region-home-ad-banner">
        <div id="block-views-banner-ad-block-block" class="block block-views  contextual-links-region">
            <div class="contextual-links-wrapper">
                <ul class="contextual-links">
                    <li class="views-ui-edit first">
                        <a href="/banner_ad_block/edit/block?destination=node">Edit view</a>
                    </li>
                    <li class="block-configure last">
                        <a href="/banner_ad_block-block/configure?destination=node">Configure block</a>
                    </li>
                </ul>
            </div> <!-- end contextual-links-wrapper -->

            <div class="content">
                <div class="view view-banner-ad-block view-id-banner_ad_block view-display-id-block view-dom-id-542147d83a500d1c31244e2e2a583562">
                    <div class="view-content">
                      <div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
                        <div class="views-field views-field-field-ad-image">
                            <div class="field-content">
                                <a href="http://www.externallink.com" target="_blank">
                                    <img src="expo-home-page-banner.jpg" width="912" height="100" alt="" />
                                </a>
                            </div>
                        </div>
                      </div>
                    </div>
                </div>
            </div> <!-- end content -->
        </div> <!-- end block-views-banner-ad-block-block -->
    </div> <!-- end region-home-ad-banner -->
</div> <!-- end spacer -->

I have this css that works:

.spacer img{
    background: #ffffff;
    border:5px;
    margin-left: 0px;
    padding-top: 30px; 
    padding-bottom: 20px; 
}

I need to apply a background style to the div with the class “region-home-ad-banner”, so I tried this:

.spacer>div.region-home-ad-banner {
    background: #ffffff;
}

According to Firebug, that selector isn’t being applied at all. It’s not being overwritten by something with higher priority, it just isn’t happening at all.

Why would .spacer img find what it needs to, even though the img tag is buried in multiple levels, but .spacer>div.region-home-ad-banner isn’t finding the div that’s the immediate child of .spacer?

EDITED TO ADD SCREENSHOT

enter image description here

  • 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-06-08T20:11:46+00:00Added an answer on June 8, 2026 at 8:11 pm

    This can be due to several reasons:

    Caching:

    Open the CSS tab in firebug, choose the CSS file, and make sure that rule is available in your CSS.
    In that case, clear your cache (sometimes CTRL + F5 are not enough) and retry.

    Typo:

    Make sure you don’t have any typo errors, open the console in firebug and check for warnings. Or open the Error Console in Firefox. (Tools–> Web Developer –> Error Console)
    It can be a typo from a previous rule, for example, forgetting to put a closing curly bracket (}) will break your following rules.

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

Sidebar

Related Questions

i have the following code: /** * @generated */ public class foo ... /**
I currently have the following PHP code to control the visibility of a block:
I have the following code: <div class=sidebar>1</div> <div class=sidebar>2</div> <div class=sidebar>3</div> How do I
I have the following HTML code (note no closing tags on <\option> ) generated
I have generated a pdf file with password protection by using the following code:
I have written following code for getting location name : UseGpsActivity.java public class UseGpsActivity
I have following generated code and tried to retrive the radio button value or
I have the following code to pull the auto generated thumbnail images from a
I have the following code: JSF Managed Bean: @ManagedBean(name = purchaseView) @ViewScoped public class
I have the following code var input = $('#el_id'); wrapper = $(document.createElement('div')); wrapper.addClass('small'); wrapper.css('width',200);

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.