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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:30:20+00:00 2026-05-31T12:30:20+00:00

I’m having trouble with some whitespace above my table. I have a table that

  • 0

I’m having trouble with some whitespace above my table. I have a table that holds two buttons and then right below it is a Google map. I would like to float the table over top of the map instead of having them listed, if you will. I get about ten pixels of white space and I am having so much trouble figuring out why. Any ideas? Here is the first part of my HTML:

   <body onload="initMap()">
<div>
    <table width="100%"  >
        <tr>
            <th height="45" align="right" bgcolor="#CED0D0"  scope="col">
                <a href = http://search.html class="classname">Search</a> 
                <a href = http://loggedout.html class="classname">Log Out</a>
            </th>
        </tr>
    </table>        
</div>   
<div id="map_canvas" style="float:left; width:100%; height:100%"></div>

Map CSS

html { height: 100% }
body { height: 100%; margin: 0; padding: 0; }
#map_canvas { height: 100% }

table.alerts {
    border-width: 8px;
    border-spacing: 2px;
    border-style: outset;
    border-color:#FFF;
    border-collapse: separate;
    background-color:#FFF;
    bottom:0;
    position:absolute;
    font-family:Lucida Grande, Tahoma, Arial, Verdana, sans-serif;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    float:left;
    margin-right: 5px;
}

table.alerts th {
    border-width: 8px;
    padding: 0px;
    border-style: none;
    border-color:#999;
    background-color:#FFFFFF;
    font-family:Arial-Black,Helvetica,sans-serif;
    height: 40px;
    text-align: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size:130%;
}

table.alerts td {
    border-width: 0px;
    padding: 3px;
    border-style: none;
    border-color:#039;
    background-color: rgb(247, 247, 242);
    font-family:"Arial", Gadget, sans-serif;        
    font-weight:bold;
}

.black_overlay {
    display: none;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index:1001;
    -moz-opacity: 0.8;
    opacity:.60;
    filter: alpha(opacity=80);
}

.white_content {
    display: none;
    position: absolute;
    top: 20%;
    left: 13%;
    width: 100%;
    height: 60%;
    padding: 10px;
    background-color: white;
    z-index:1002;
    overflow: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;           
}

#bar {
    position:absolute;
    top: 0px;  
    right: 0px;

}

#body {
    margin:0;
    padding:0;
}


.greyBox{
    padding:7px;
    background-color:#c6c6c6;
    margin-bottom:0px;
    margin-left:4px;
    width:200px;
    height:26px;
    font-family:Arial,Helvetica,sans-serif;
    text-align : center;
    font-size:130%;

}


.bottom{
    position: absolute;
    bottom: 0; 
}

p.hide { 
    display: none; 
}

Button CSS:

.classname {
    -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
    -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
    box-shadow:inset 0px 1px 0px 0px #ffffff;
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
    background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
    background-color:#ededed;
    -moz-border-radius:6px;
    -webkit-border-radius:6px;
    border-radius:6px;
    border:1px solid #dcdcdc;
    display:inline-block;
    color:#777777;
    font-family:arial;
    font-size:15px;
    font-weight:bold;
    padding:6px 24px;
    text-decoration:none;
    text-shadow:1px 1px 0px #ffffff;
}.classname:hover {
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
    background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
    background-color:#dfdfdf;
}.classname:active {
    position:relative;
    top:1px;
}
  • 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-31T12:30:21+00:00Added an answer on May 31, 2026 at 12:30 pm

    I saved your code and loaded it in chrome and saw the whitespace at the top. Looks to be from the tr, because you have the table set to border-collapse: separate and border-width : 8px and border-spacing set to 2px. spacing + width = 10px.

    So not seeing why you did this (or why you’re using a table at all, honestly), I would add the following:

    table {
        border-width: 0px;
        border-spacing: 0px;
        border-collapse: collapse;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have some data like this: 1 2 3 4 5 9 2 6
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text

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.