In the article “Table cell shading – white space – troubleshooting†found at
http://www.thedoctools.com/index.php?show=wt_cell_shading, I have described
different types of settings that result in white space in table cells. The
border problem is not among the ones I have described (I think I should add
it to the article) – I don’t think I have tried using a bordered style in a
table so I have not seen the problem until I read this thread.
I made some testing and found the results described below (same result in
Word 2003 and 2007). I also consider the white spacing a bug. As the
description below shows, not only the combination of space before/after and
paragraph border(s) matters – the number of lines and/or paragraphs may also
affect the result (I have not tested and described all possible
combinations). As you said, Suzanne, the solution to this problem is to
remove the border(s).
My test results:
In a table cell with cell (or table) shading, if you apply a style with
space before and after + border(s) to text as specified below, white space
will appear as follows:
Ex. 1A. Style with border below, paragraph with 1 line of text:
Space before appears as white space.
Space after appears as white space.
Ex. 1B. Style with border below, paragraph with 2 or more lines of text or
more than 1 paragraph:
Space before is shaded correctly.
Space after appears as white space.
Ex. 2A. Style with border above, paragraph with 1 line of text:
Space before appears as white space.
Space after appears as white space.
Ex. 2B. Style with border above, paragraph with 2 or more lines of text or
more than 1 paragraph:
Space before appears as white space.
Space after is shaded correctly.
Ex. 3. Style with border above and below, paragraph with 1 or more lines of
text:
Space before appears as white space.
Space after appears as white space.
Ex 4A: Style with left border, paragraph with 1 or more _lines_ of text:
Space before is shaded correctly.
Space after is shaded correctly.
Ex 4B: Style with left border, 2 or more _paragraphs_:
Space before is shaded correctly.
Space after appears as white space
Ex 5A: Style with right border, paragraph with 1 line of text:
Space before appears as white space
Space after appears as white space
--
Regards
Lene Fredborg - Microsoft MVP (Word)
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word