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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:12:16+00:00 2026-06-14T15:12:16+00:00

This bug is really making my head hurt. For some reason my table has

  • 0

This bug is really making my head hurt. For some reason my table has a 1px gap on the left and right side of the middle cell. I have no idea what is causing this. You can see an example here: http://jsfiddle.net/JdayW/1/

What I need to have is an image in the middle cell that acts as a “mask” so you can see the background image behind it. There needs to be a solid color to the left and right of the image that stretches to the edges of the browser window. I figured a table was the best way to achieve this.. but I could be wrong. The gaps go away when I put a background color on the middle cell or the entire table, but obviously that is not going to work for me because I cannot have a background color behind the image.

In the site I’m building this “mask” image with transparency will scroll over the the fixed background behind it. So I cannot just make the png a jpg with the background on it.

Is this happening because I have the table set to width:100% and the middle cell set to a fixed 300px width?

  • 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-14T15:12:17+00:00Added an answer on June 14, 2026 at 3:12 pm

    For some reason, your td tags were causing the margins. Setting them to 0 and giving the left and right td tags a width of 50% seemed to fix the problem:

    table {width:100%; height:300px; border-collapse: collapse; border-spacing: 0;}
    
    td.left, td.right {background-color:green; margin:0; padding:0; width:50%;}
    
    td.middle {width:300px; margin:0; padding:0;}
    

    Working jsfiddle: http://jsfiddle.net/JdayW/34/

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

Sidebar

Related Questions

This really seems like a bug to me, but perhaps some databinding gurus can
Is this a bug in jQueryUI's dialog or is there some reason this is
I have this really weird bug. When I scroll down my table view, down
UPDATE 2011.09.13 This bug has been resolved by Adobe. The example code below now
EDIT : As of 2012-06-11 this bug has been finally fixed! https://bugs.webkit.org/show_bug.cgi?id=35981#c1 I have
I have some data, like this: BUG DATE STATUS ---- ---------------------- -------- 9012 18/03/2008
We're experiencing a really bizarre bug in our Rails 2.3.4 app. This bug only
This bug or my lack-of-knowledge or smth else is really starting to bother me.
This bug is really confusing me as it only happens on 1 of the
Any suggestions or workarounds for this bug? http://dev.ckeditor.com/ticket/6436 i really need to get around

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.