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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:55:52+00:00 2026-05-13T08:55:52+00:00

I have a CSS problem regarding borders, the problem is adding borders around a

  • 0

I have a CSS problem regarding borders, the problem is adding borders around a td that has a colspan.

The table has properties:

<table cellspacing=0 cellpadding=0 border=0>

The CSS style:

.tdclass{
    background-color:#FDBCC1;
}

.tdclass td{
    border-top: 3px solid white;
}

The way it works is like this:

<tr class = "tdclass">
<td> ...
<td colspan="2"> ...
<td> ...
</tr>

What this CSS does is highlights certain rows and adds a white line that acts
as a fake row spacing. Adding borders to the <tr> element does not work, only
works on <td>.

Now this works fine on all the cells, except on the cell with the "colspan".
The problem is that it generates the border BUT it is not white, it is the same
color as the cell background which is defiend in ".tdclass". This problem seems
to happen only on the "colspan" <td> element.
So the effect looks as if the cell has shifted up from the row:

It likes this:

____-----____

Where that little bump is the <td> with "colspan" in. It looks like bump because
all other cells generate a white border while that generates a border that has
the same color as the .tdclass "background-color".

Any reason why? Is there a fix to this?

  • 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-13T08:55:52+00:00Added an answer on May 13, 2026 at 8:55 am

    Is there any content in your td with the colspan?

    IE, Firefox, and Chrome render the following in three different ways:

    <tr class = "tdclass">
     <td> blah</td>
     <td colspan="2"> </td>
     <td> blah</td>
    </tr>
    

    Chrome does what you expect. Firefox does what you describe. IE leaves off the border and does not extend the background color.

    Try inserting a &nbsp; in your empty cells.

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

Sidebar

Ask A Question

Stats

  • Questions 303k
  • Answers 303k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can define a global variable or declare a function… May 13, 2026 at 8:40 pm
  • Editorial Team
    Editorial Team added an answer If you need to use the current date in a… May 13, 2026 at 8:40 pm
  • Editorial Team
    Editorial Team added an answer I am afraid that client script debugging in Visual Studio… May 13, 2026 at 8:40 pm

Related Questions

I'm trying to convert Matt Berseth's ' YUI Style Yes/No Confirm Dialog ' so
I installed the latest version of Wordpress and added the WP-Syntax plugin (and also
I'm still relatively new to CSS, but after lots of Stack Overflow reading, I
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
I use the following snippet to make an element's background lightblue, then slowly fade

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.