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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:41:32+00:00 2026-05-22T22:41:32+00:00

For CSS, we know that vertical margin collapses, such as in example: http://jsfiddle.net/rbxL7/5/ (The

  • 0

For CSS, we know that vertical margin collapses, such as in example:

http://jsfiddle.net/rbxL7/5/

(The vertical margin between the divs are only 30px.)

But what about floated divs? Why do the vertical margins not collapse?

example: http://jsfiddle.net/rbxL7/3/

(the horizontal and vertical margins between the divs both end up as 60px).

  • 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-22T22:41:32+00:00Added an answer on May 22, 2026 at 10:41 pm

    According to W3C:

    In CSS, the adjoining margins of two
    or more boxes (which might or might
    not be siblings) can combine to form a
    single margin.

    and…

    Two margins are adjoining if and only
    if:

    1) both belong to in-flow block-level
    boxes that participate in the same
    block formatting context

    which leads to…

    Floats, absolutely positioned elements, block containers (such as
    inline-blocks, table-cells, and
    table-captions) that are not block
    boxes, and block boxes with ‘overflow’
    other than ‘visible’ (except when that
    value has been propagated to the
    viewport) establish new block
    formatting contexts for their
    contents
    .

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

Sidebar

Related Questions

let me preface this by saying I don't really know CSS at all. I'm
I don't know too much about css so I have to ask. I have
I have an element that needs to be vertical in a design I have
can someone please recommend a horizontal navigation bar with a horizontal second tier that
I'm ultimately looking to rebuild an old website that complies to web standards, and
I know all the classical SEO articles have a chapter about how important it
this is an odd one, that has eaten a lot of hours of my
The cell contains nothing but a checkbox. It is rather wide because of text
I have a line of text and a small image, which I am trying
I am seeking some advice regarding unnecessary scrollbars appearing on certain form items. A

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.