[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

Create a seamless border between two cells ?

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!

Kevin
0
Kevin
Asked:
Kevin
  • 2
1 Solution
 
grogmanCommented:
Kevin,

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!

Doug
0
 
KevinAuthor Commented:
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 :(
0
 
stengeljCommented:
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">
0
 
grogmanCommented:
Thanks, stengelj, I should have been a little clearer in my example. Hope this helps you, girbeaud!
Doug
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now