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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:28:43+00:00 2026-05-28T13:28:43+00:00

I currently have a HTML structure like this: <div id=holder> <div id=content>…</div> <div id=footer>…</div>

  • 0

I currently have a HTML structure like this:

<div id="holder">
    <div id="content">...</div>
    <div id="footer">...</div>
</div>

The CSS is like this:

* {
    margin: 0;
    padding: 0;
}

#content, #footer {
    background: #fff;
}

#footer {
    border-top: 1px dashed #ddd;
}

Note: holder doesn’t have any background-color


My concern is that the background of the top border on the footer will be transparent since holder doesn’t have any background.

And applying a white background to the holder is not an option in my case (I won’t explain why not, but trust me, it is not possible)

My Question:

  • The background of the dashed border will be the same of my footer
    (white) or the background-color of holder (none)?
  • Will it behave cross-browser the same way all the time?
  • 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-28T13:28:43+00:00Added an answer on May 28, 2026 at 1:28 pm
    1. The border belongs to your #footer div and will render with its background attribute – clear or otherwise.

    2. I’ve tested the following CSS in Chrome, Safari, Firefox (sorry, no immediate IE access):

      * { margin: 0; padding: 0; }
      
      #content, #footer { background: #fff; }
      
      #content { background:#00F; }
      
      #footer {
          border-top: 5px dashed #f00;
      }
      

    Please let me know if I missed your question, but I believe this is what you were asking.

    The background style of the content, padding, and border areas of a box is specified by the ‘background’ property of the generating element. Margin backgrounds are always transparent.

    via http://www.w3.org/TR/CSS2/box.html

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

Sidebar

Related Questions

I have this command that I run every 24 hours currently. find /var/www/html/audio -daystart
I have a webpage which has tab list, the HTML looks like this for
I have this simple HTML structure: <ul> <li> One <p> Foo is a fool.
I have this kind of HTML structure (stripped down for easy readability): <head> <title>My
I have a page with the below structure (HTML content shortened for readability), where
I currently have two apps: app1/ app2/ templates/ app1.html app2.html In app1.html, I'm including
I currently have the following MySQL statement to replace the HTML entity for a
I currently have a product view page that contains an MVCContrib HTML Grid with
I have an html table with many rows. I'm currently grouping several rows inside
i have this html menu: <ul id='main'> <li class='active current' id='lighty'> <a href='/'>Lighty</a> <ul>

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.