1

I am drawing a table with highly customized styles for its cells. Unfortunately, I discovered that increasing the border of the 6th cell to 4px creates a rendering problem as displayed in this screenshot: table with rendering problem

this is the CSS for the rule that introduced the problem:

tr.item_cnnc td:first-child + td + td + td + td + td { border: 4px solid black; } 

I just wonder why the border on the 3rd row is not displayed correctly. Any suggestions?

EDIT: pasting the HTML of the affected row:

<tr class="item item_cnnc"> <td class="itemid item_kritisch">DP3</td> <td class=" item_kritisch"> put text here </td> <td class="option item_kritisch"> <input type="checkbox" name="Item_DP3_relevant" value="1" > </td> <td class="option"> <input type="text" size="1" name="Item_DP3_vw_pij" > </td> <td class="option item_kritisch"> <input type="text" size="1" name="Item_DP3_pij" > </td> <td class="option"> <input type="checkbox" name="Item_DP3_kr" value="true" > </td> <td class=" info parent"> <div id="popup_DP3" class="dropdown">put info here</div> <a href="#info_DP3" id="info_DP3"> <img src="/images/Information_icon_small.png" alt="Info" width="15" height="15" border="0" class="x"/></a> </td> </tr> 
3
  • Does that row have the same class-name? Commented Jun 30, 2011 at 9:43
  • 2
    Can you post the HTML as well Commented Jun 30, 2011 at 10:05
  • I just added the HTML of the problematic row Commented Jun 30, 2011 at 10:35

1 Answer 1

1

It could get messy having different sized borders on table cells, I wouldn't recommend it.

Why not nest the checkbox inside a div with a black border, and height and width of 100%? That might be a more consistent way of gettign the result you want.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.