Home
Analytics
Cell/Table border with Color : Transparent ??
hammerx
<p>Hi everyone,</p>
<p> </p>
<p>I am building a report with tables and the borders of cells should be invisible so that the background color of Master Page can come through.</p>
<p> </p>
<p>I have tried to apply the rgba(0,0,0,0) in XML source code, or Css style on "border color", but it seems that the BIRT does not recognize the rgba code.</p>
<p> </p>
<p>Do you have any ideas?</p>
<p> </p>
<p>Thanks for any suggestion</p>
<p> </p>
<p>Best regards</p>
<p>Ham</p>
<p> </p>
Find more posts tagged with
Comments
JFreeman
<p>Why not just remove the borders on the cells all together?</p>
hammerx
<blockquote class="ipsBlockquote" data-author="JFreeman" data-cid="137419" data-time="1435250023">
<div>
<p>Why not just remove the borders on the cells all together?</p>
</div>
</blockquote>
<p>Yes, I have tried to remove all the borders, and set the padding(margin), but then the "Background Color of Cells" will take over the borders, the "Background Color of Masterpage" can not come through the borders between the cells.</p>
<p> </p>
<p>To generate the Report in HTML, there will be no lines between the Cells, the whole table just look like a big color block.</p>
<p>I have also tried to set the color of borders to "auto", then the borders will become "black", instead of "transparent".</p>
<p> </p>
<p>any further Ideas?</p>
<p> </p>
<p>thank you</p>
JFreeman
<p>instead of just setting the padding on the cell itself, set the padding on the elements within the cells as well and the only apply color changes to the elements within the cells and not the cells themselves. Leave the background color of the cells blank so they are transparent.</p>
<p> </p>
<p>Then, the coloring from the background color setting on the master page will show through.</p>
<p>Take a look at the attached example. Both the cells and elements have a padding of 1 and I have applied color changes to the data/label elements within the cells and left the cells background color blank. The master page is set to grey and the result is the grey shows between each data and label element.</p>
hammerx
<p>Hi Jesse,<br>
<br>
Thank you for your suggestion :-)</p>
<p> </p>
<p>Actually thats how I built the report at the first place, then I had the first problem encountered, please see P1.</p>
<p>
JFreeman
<p>You can set a fixed height for the labels in the advanced properties.</p>
<p> </p>
<p>Take a look at the modified version of the previous sample report I have attached. I have set a fixed height of 50px on the label elements in the header of the table.</p>