Create a seamless border between two cells ?

Posted on 2005-05-02
Last Modified: 2012-05-05
I have a table with 1 row and two columns.  I would like the left cell to be a red background with a number generated by a java applet.  I would like the right cell to have a graphic (which looks like text) that has a red background in the image file, so that it looks like one continuous red row across the sheet.

Example text:

74 days until your voice can be heard !

(I know that the java code can generate the entire text, but I have a specific font that I want to use in the graphic.)

What I currently get is the red left cell, then a white gap between the cells, then the right graphic.  How can I get rid of the whitespace ?

Web site needs to up by Tuesday - so I really appreciate all help!

Question by:Kevin
    LVL 4

    Accepted Solution


    Try modifying your <table> tag to include "cellpadding=0" and "cellspacing=0". This usually will eliminate the gap between cells in a table.

    Let me know if this helps!


    Author Comment

    Would it look like this ?

              <td width="624" bordercolor="#FF0000" bgcolor="#FF0000" cellpadding=0" and "cellspacing=0">
                <div align="center"></div></td>

    If so it didn't work :(
    LVL 9

    Expert Comment

    As grogman said, add it to the <table> tag, not the <td> tag. I would also add border="0".  Also, get rid of the 'and' in the tag.  Like this:

    Example: <table cellpadding="0" cellspacing="0" border="0">
    LVL 4

    Expert Comment

    Thanks, stengelj, I should have been a little clearer in my example. Hope this helps you, girbeaud!

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Modify Area Above Editable Region In DW Template. 6 448
    Dreamweaver CS6 FTP issues 12 1,278
    Search/Results Pages 7 385
    CSS HTML Text Alignment 13 414
    I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now