Question

I think I have set all padding, margin, border-spacing, etc to 0 but I have a nested table within another table and there is a very tiny (but visible) horizontal space.

I know this as the backcolor of the nested table is blue and the backcolor of the top table is white and I can see a line of white to the right and left of the table.

Is there any way around this?

Was it helpful?

Solution

I don't mean to jump into a philosophical "Anti-Table" debate here, but you might want to step back and reconsider if nesting tables are what you really should be using in this situation...

If you are displaying tabular data and certain cells need to contain multiple rows/columns, you might want to look into using the colspan and rowspan attributes on normal table cells within a single table.

Alternatively, if you're using the tables to render the visual layout of the page, you may want to look into doing it with CSS-based methods.

OTHER TIPS

have you tried setting the cell-padding and cell-spacing properties of the table to 0

Is that what you meant by

i think i have set all padding, margin, border-spacing, etc to 0

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top