underprocessableHi Dave,
Just a quick look at this, but it appears that you've defined single cell ta
ble rows with multiple (layered) colors as 'backgrounds'
for each cell and no cell content. Word doesn't really know how to do partia
l cell color fills for background, so what you're seeing
is the table background 'shading'.
Ifyou work from the other direction to build the table in Word using the tab
le tools, you'll note that the shading (background)
choices available are for selections at the levels of
Table
Cell
Paragraph
Text
Using File=>Web Page Preview then View source in the browser will give you
the structure of the Word table). You'll note that Word
cut out the inline-block coding you had when it opened your table, basing th
ings on its own internal 'Table Normal' base style.
A couple of ways to work this might be to divide the row into multiple, bord
erless cells (colums) for the width of the data you're
looking to represent and color/fill each cell, or you could keep the single
column/cell rows and fill with the appropriate count of
non-break spaces and apply shading to the text, or even place a colored shap
e in the table of the right width. Shaded text will
usually overlay the table background colors.
============
<<"Dave" <sdsds@.qdq.qdq> wrote in message news:%23j4Eg3cjHHA.3940@.TK2MSFTNGP
02.phx.gbl...
Hi,
i don't know whether it's a Word problem or asp.net problem. So i post it in
both.
I have an asp.net application which produces a html page (see attachment)
with a table containing a gray background colour and another background
colour (red) above this with variable length, representing a value. I pasted
it from IE to here below, but just like in Word, the red colour is not
rendered.
In the attachment, you can see as it is rendered in IE (with the red
colour).
The code of that html page is:
<table align="Center" border="0" style="border-width:0px;">
<tr><th
style="font-family:verdana;font-size:6pt;width:100px;">______100%______</th>
</tr>
<tr><td align="left" style="background-color:LightSlateGray;"><span
style="display:inline-block;background-color:Red;width:15px;"></span></td></
tr>
</table>
______100%______
My question is: is there any way to render this table in Word as it's
rendered in IE (with red colour)? Maybe by changing something in the code
...?
Thanks for help
Dave >>
--
Bob Buckland ?:-)
MS Office System Products MVP
*Courtesy is not expensive and can pay big dividends*
Thanks Bob
"Bob Buckland ?:-)" <75214.226(At Beautiful Downtown)compuserve.com> schreef
in bericht news:eLONHnkjHHA.3928@.TK2MSFTNGP03.phx.gbl...
> Hi Dave,
> Just a quick look at this, but it appears that you've defined single cell
> table rows with multiple (layered) colors as 'backgrounds'
> for each cell and no cell content. Word doesn't really know how to do
> partial cell color fills for background, so what you're seeing
> is the table background 'shading'.
> Ifyou work from the other direction to build the table in Word using the
> table tools, you'll note that the shading (background)
> choices available are for selections at the levels of
> Table
> Cell
> Paragraph
> Text
> Using File=>Web Page Preview then View source in the browser will give
> you the structure of the Word table). You'll note that Word
> cut out the inline-block coding you had when it opened your table, basing
> things on its own internal 'Table Normal' base style.
> A couple of ways to work this might be to divide the row into multiple,
> borderless cells (colums) for the width of the data you're
> looking to represent and color/fill each cell, or you could keep the
> single column/cell rows and fill with the appropriate count of
> non-break spaces and apply shading to the text, or even place a colored
> shape in the table of the right width. Shaded text will
> usually overlay the table background colors.
> ============
> <<"Dave" <sdsds@.qdq.qdq> wrote in message
> news:%23j4Eg3cjHHA.3940@.TK2MSFTNGP02.phx.gbl...
> Hi,
> i don't know whether it's a Word problem or asp.net problem. So i post it
> in
> both.
> I have an asp.net application which produces a html page (see attachment)
> with a table containing a gray background colour and another background
> colour (red) above this with variable length, representing a value. I
> pasted
> it from IE to here below, but just like in Word, the red colour is not
> rendered.
> In the attachment, you can see as it is rendered in IE (with the red
> colour).
> The code of that html page is:
> <table align="Center" border="0" style="border-width:0px;">
> <tr><th
> style="font-family:verdana;font-size:6pt;width:100px;">______100%______</t
h></tr>
> <tr><td align="left" style="background-color:LightSlateGray;"><span
> style="display:inline-block;background-color:Red;width:15px;"></span></td>
</tr>
> </table>
> ______100%______
>
> My question is: is there any way to render this table in Word as it's
> rendered in IE (with red colour)? Maybe by changing something in the code
> ...?
> Thanks for help
> Dave >>
> --
> Bob Buckland ?:-)
> MS Office System Products MVP
> *Courtesy is not expensive and can pay big dividends*
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment