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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:03:04+00:00 2026-05-23T06:03:04+00:00

In the given HTML markup below the middle row pink boxes overflow to the

  • 0

In the given HTML markup below the middle row pink boxes overflow to the gray box below it. How can I make it certain that the gray box always remain blow the pink boxes. Also here is the link to the html page: http://pastehtml.com/view/axc3iain8.html

<html>
    <head>
        <title>Page 3</title>

        <style type="text/css">
            body {
                width: 1000px;
                margin-left: auto;
                margin-right: auto;
            }

            #header {
                height: 200px;
                margin: 2px;
                margin-bottom: 10px;
                font-family: Arial,Helvetica,sans-serif;
                font-size: XX-large;
                background: gray;
            }

            .snip_list {
                min-height: 100px;
                margin: 25px auto;
            }

            .snippet {
                width: 323px;
                float: left;
                margin: 5px;
                font-size: small;
                background: lightpink;
                display: inline;
            }

            #para_middle {
                margin-top: 10px;
                background: gray;
            }
        </style>
    </head>

    <body>
        <div id="header">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
        </div>

        <div class="snip_list">
            <div class="snippet">
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
            </div>

            <div class="snippet">
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
            </div>

            <div class="snippet">
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
            </div>
        </div>

        <div id="para_middle" class="para">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
                exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
                irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
                pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
                deserunt mollit anim id est laborum.</p>
        </div>

        <div class="snip_list">
            <div class="snippet">
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
            </div>

            <div class="snippet">
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
            </div>

            <div class="snippet">
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
            </div>
        </div>
    </body>
</html>
  • 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-23T06:03:05+00:00Added an answer on May 23, 2026 at 6:03 am

    You could give

    overflow:hidden
    

    to div.snip-list. It should keep in place the container mantaining the margins.

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

Sidebar

Related Questions

Given this markup: // Calendar.html?date=1/2/2003 <script> $(function() { $('.inlinedatepicker').datepicker(); }); </script> ... <div class=inlinedatepicker
I'm looking for a general purpose API/web service/tool/etc... that allows convert a given HTML
Given the following markup <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML Strict//EN><META http-equiv=Content-Type content=text/html; charset=utf-8> <HTML
I'm working on a little html/css framework that I can use for most of
Given an HTML page that is a text heavy article, I would like to
I have a given markup that I'm trying to apply to some style on.
Here's a simple example to illustrate the behavior: Given this html markup: <div data-company=Microsoft></div>
Given an html/javascript 'widget' which needs to have certain fields customized before use. For
HTML markup generated is below HTML <input type="hidden" name="CONTROL$POSITION" value="" id="control_position_1"/> <input type="hidden" name="CONTROL$POSITION"
Given the following MVC mark-up: <p> <label for=forenamesLabel>Forename(s):</label> <%: Html.TextBoxFor(model => model.ConsultantRegistrationDTO.Forenames) %> <%:

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.