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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:55:48+00:00 2026-06-11T03:55:48+00:00

Here is the source: <div style=border:1px solid red; margin-bottom:10px>test block1,</div>; <div style=border:1px solid red;

  • 0

Here is the source:

<div style="border:1px solid red; margin-bottom:10px">test block1,</div>;    
<div style="border:1px solid red; margin-top:10px">test block2</div>;

It always has 10px between block1 and block2…

I’m not sure what is wrong. Please don’t say ‘use padding‘ and ‘change 20px‘

I have to use margin-bottom, margin-top and only 10px.

  • 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-11T03:55:49+00:00Added an answer on June 11, 2026 at 3:55 am

    It’s called collapsing margin

    as per 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. Margins
    that combine this way are said to collapse, and the resulting combined
    margin is called a collapsed margin.

    Read this http://reference.sitepoint.com/css/collapsingmargins

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

Sidebar

Related Questions

Been banging my head against this one for a while... <div id=pager style=top: 5px;
Hi everyone, here am trying to display the source code of a particular div
I'm trying to perform a skew on an image, like one shown here (source:
Here is source code: @OneToOne(fetch = FetchType.LAZY) @Cascade({SAVE_UPDATE, EVICT, DELETE}) @JoinColumn(name = A_ID, nullable
Edit: You can get the full source here: http://pastebin.com/m26693 Edit again: I added some
To see what I mean, check out my source here in IE. When you
var _thumb = $('.galleria img[@rel='+_src+']'); Full source here Is it a deprecated selector?
Hey all. I've downloaded and moved the Xerces (v3.1.1) source here: /usr/include/xerces and I
Here is the source Table . I want to retrieve the Name , Host
Here is the source xml: xml This is the xml of an fxg file

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.