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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:31:22+00:00 2026-06-09T09:31:22+00:00

This seems to be a common problem. I’ve reviewed 5 or 6 other SO

  • 0

This seems to be a common problem. I’ve reviewed 5 or 6 other SO questions and none seem to fit this case exactly or have a solution that works for me. I’m not even sure if I care about the “how to fix it” as the “why is it happening” at this point. Be kind, HTML is not my specialty.

I’ve got this HTML/CSS:

<!DOCTYPE html>
<html>
    <head>
        <style type="text/css">
            body {
                background: #336699;
            }

            .postContainer {
                margin-left: 40px;
                background: white;
                width: 555px; /* 480px + 75 for bg */
            }

            .postTop {
                background: red;
                height: 75px;
                padding-left: 80px;
            }

            .postMiddle {
                background: yellow;
                padding-left: 80px;
            }

            .postBottom {
                background: red;
                height: 75px;
                padding-left: 80px;
            }
        </style>
    </head>
    <body>
    <div class="postColumn">
        <div class="postContainer">
            <div class="postTop">
                <p>asdf</p>
            </div>
            <div class="postMiddle">
                <p>asdf</p>
            </div>
            <div class="postBottom">                
                <p>asdf</p>
            </div>
        </div>
    </div>
    </body>
</html>

I’ve stripped a lot of it down; the goal is to have a blog post with an image that has a top part, a stretched middle part, and a bottom part down the left. So the top area’s going to have a short bit of text, the middle area an arbitrary amount, and the bottom area one line’s worth of text. But since there’s some space between the divs, the image doesn’t line up.

I’ve checked the margins in Firebug and Chrome’s dev tools; both claim there’s no margin and no padding. I’ve explicitly set margins and nothing’s changed. Some questions recommend changing line-height; I tried that and it just makes the text wonky without fixing the gaps. I’ve tried changing the heights. Some posts said the content of the div can affect the parent margins, but altering those hasn’t done anything either. A lot of posts stated, “Use a reset file!” I sort of understand what that is, but I’d like to know why it works before randomly applying it. So what voodoo curse is inserting this space, and how do I break it?

  • 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-09T09:31:23+00:00Added an answer on June 9, 2026 at 9:31 am

    Add p { margin: 0; padding: 0; } to your styles or use a reset CSS file which will stop things like this happening in the future and give you more control over your styling.

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

Sidebar

Related Questions

This seems to be a common problem, but I cant seem to fin a
this seems a common problem, except I have had no trouble with this before
This seems to be a common problem, but I can't seem to find the
It seems like this is a common problem, but I can't seem to find
This seems to be a common problem but I cannot find a solution. I
This seems to be a fairly common problem but none of the the solutions
This seems to be a fairly common problem, but the solutions that I have
This seems like a common problem, but I'm unable find an adequate solution. I'm
I've looked around for a solution but it seems this is not a common
This seems to be a very common problem of mine: data = [1 2

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.