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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:12:05+00:00 2026-05-27T12:12:05+00:00

<div class=footernote> <p> One statement …. </p> </div> <footer> <p>Current Visitors: 11</p> <ul> <li><a

  • 0
<div class="footernote">
    <p>
       One statement ....
    </p>
</div>
<footer>
    <p>Current Visitors: 11</p>
    <ul>
        <li><a href="#">Link 1</a></li>
        <li><a href="#">Link 2</a></li>
    </ul>
    <p class="copyright">copyright statement</a></p>
</footer>

CSS:

footer ul {
    text-align: center;
    margin-left: 90px;
    margin-top: 18px;   
}

footer ul li {
    display: inline;
    padding-right: 30px;
}

.copyright {
    margin-left: 80px;
    margin-top: 23px;
    text-align: center;
    font-size: small;
}

.footernote {
    text-align: center;
}

Problem:

  1. If i put margin-bottom value in .footernote, whatever inside <footer> changes its position due to the margin-bottom value i put in .footernote. footernote is not in <footer>, so they are both different elements. How come the set of <footer> gets effected by .footernote?

  2. Same problem appears when i change margin-top of footer ul! Copyright statement gets effected, it pulls up or down based on margin-top i put in footer ul. <p class="copyright"> is a separate element. Any idea why does this indirect effect occur?

  • 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-27T12:12:06+00:00Added an answer on May 27, 2026 at 12:12 pm

    I’m not certain without a test case, but this is almost certainly “collapsing margins” at work:

    Certain adjoining margins combine to form a single margin. Those
    margins are said to “collapse.” Margins are adjoining if there are no
    nonempty content, padding or border areas or clearance to separate
    them.

    The spec:

    • http://www.w3.org/TR/CSS2/box.html#collapsing-margins
    • http://www.w3.org/TR/css3-box/#collapsing-margins

    Some easier reads:

    • http://reference.sitepoint.com/css/collapsingmargins
    • http://www.howtocreate.co.uk/tutorials/css/margincollapsing
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<div class = a> <div class = a b> text </div> </div> <script> alert($(.a).html());
If I had two sets of classes, like so <div class = link 1></div>
I would add each two result one div class <?php while ($fetch = $db->fetch($query))
How do I show a div class on clicking a link? This is the
I got with some text entered with tinyMCE in a div class'.category-info'. Text can
I have this code: <div class = content-dir-item> <p>Text input</p> <img src=./images/email.png class =
I want to apply the rules in a CSS file to a certain div/class
I am attempting to remove a CSS class from a particular DIV on-the-fly. I
Can I use DIV Class and ID together in CSS? For example: <div class=x
I am attempting to replace a div class with a different one based on

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.