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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:23:56+00:00 2026-05-23T04:23:56+00:00

<!DOCTYPE html> <html> <head> <title>MyTitle</title> <style type=text/css> body { background-image:url(‘images/my.png’); /*width:100%;*/ height:100%; background-repeat:no-repeat; background-size:100%;

  • 0
<!DOCTYPE html>
<html>
<head>
    <title>MyTitle</title>
    <style type="text/css">
        body
        {
            background-image:url('images/my.png');
            /*width:100%;*/
            height:100%;
            background-repeat:no-repeat;
            background-size:100%;
            /*background-position:0,0,0,0px;
            background-position:center;*/
            margin: 0;
            padding: 0;
        }
        html
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <table cellpadding="0" cellspacing="0"
        style="height:100%; width: 100%; border-collapse: collapse; background-color: Red; border-color:Yellow;">
        <tr style="background-color: Green;">
            <td style="background-color: Blue; text-align: center; vertical-align: bottom; padding-bottom:0px;">
                <div style="margin: 0px 0px 0px 0px; background-color:Silver;">
                    <button type="submit">Some text</button>
                    <p style="">Another text</p>
                </div>
            </td>
        </tr>
    </table>
</body>
</html>

FF4. The window is blue, it means td fills the whole window. The div has zero margins, td has zero paddings. Nevertheless, there is a blue rectangle between the div and the bottom edge of the window. How to avoid it? Margin-bottom: -16px; is not an option.

Thank you.

  • 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-23T04:23:56+00:00Added an answer on May 23, 2026 at 4:23 am

    The problem is with the p element – specifically its margin-bottom.

    Collapsing margins are the reason this is happening:

    • http://reference.sitepoint.com/css/collapsingmargins
    • http://www.w3.org/TR/CSS2/box.html#collapsing-margins

    You can fix it in this instance with overflow: hidden on the div which is the parent of the p.

    Your code: http://jsbin.com/enote5

    Your code with the fix: http://jsbin.com/enote5/2

    (or you could just remove the margin on the p, if you like)

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

Sidebar

Related Questions

<!DOCTYPE html> <html> <head> <title>Title</title> <meta http-equiv=content-type content=text/html; charset=utf-8> <style type=text/css> body { background:
This is my markup: <!DOCTYPE HTML> <html> <head> <title>Test title</title> <style type=text/css> * {
<!doctype html> <html> <head> <title>JQuery Cycle Plugin - Example Slideshow</title> <style type=text/css> .slideshow {
Consider this HTML: <!DOCTYPE html> <html> <head> <title></title> <style type=text/css> div { position: relative;
Test page: <!DOCTYPE html> <html> <head> <title>button border hover test</title> <style type=text/css> input {
My code: <!DOCTYPE html> <html> <head> <title>Demo</title> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <style type=text/css>
my code is: <!DOCTYPE html> <html> <head> <title>Demo</title> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <style
<!DOCTYPE html> <html> <head> <title>Test</title> </head> <script type=text/javascript> function fire() { console.log(document.body.children.length); console.log(document.body.children[0].children.length); }
<!doctype html> <html xmlns=http://www.w3.org/1999/xhtml xml:lang=en lang=en> <head> <title>1</title> <style type=text/css> body{margin:100px;} #x { position:relative;
See example: <!DOCTYPE html> <html> <head> <title>language</title> <script type=text/javascript src=http://www.google.com/jsapi> </script> </head> <body> <div

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.