<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Div Styling insid td tag - html to xlsx report]]></title><description><![CDATA[<p>Hi , I am trying to apply some css styling for div tag inside td tag. but it is not working.</p>
<p>I want to apply different styling for the Adds and Removes label and featuretypename and name</p>
<pre><code>&lt;style&gt;
    table, th, td  {
  border: 1px solid black;
}
td{
vertical-align: top;
}
table {
  border-collapse: collapse;
}
  .line-break {
        overflow: scroll;
      
    }
    .adds-label {
    padding: 10px;
    color: #8CC641;
    font-weight: bold;
}
    
&lt;/style&gt;
&lt;tr&gt;
        &lt;th&gt;S&lt;/th&gt;
        {{#each standardChangesPerProduct}}
            {{#if @first}}
                &lt;td  class=&quot;line-break&quot;&gt;
                    {{#each addedFeatures}}                     
                                &lt;div&gt;{{featureTypeName}}&lt;/div&gt;
                                &lt;div&gt;{{name}}&lt;/div&gt;
                        {{/each}}           
                &lt;/td&gt;   
            {{else}}
                &lt;td  class=&quot;line-break&quot;&gt;
                    {{#each addedFeatures}}
                        {{#if @first}}
                                &lt;div style=&quot;color:red;&quot;&gt;&lt;b&gt;Adds&lt;/b&gt;&lt;/div&gt;
                                &lt;div&gt; {{featureTypeName}}&lt;/div&gt;
                                &lt;div&gt; {{name}}&lt;/div&gt;
                        {{else}}
                            &lt;div&gt; {{featureTypeName}}&lt;/div&gt;
                            &lt;div&gt; {{name}}&lt;/div&gt;
                        {{/if}}
                    {{/each}}    
                    {{#each removedFeatures}}
                         {{#if @first}}
                         &lt;br /&gt;
                            &lt;div class=&quot;removes-label&quot;&gt;Removes&lt;/div&gt;
                            &lt;div&gt;{{featureTypeName}}&lt;/div&gt;
                            &lt;div&gt;{{name}}&lt;/div&gt;
                        {{else}}
                            &lt;div&gt;{{featureTypeName}}&lt;/div&gt;
                            &lt;div&gt;{{name}}&lt;/div&gt;
                        {{/if}}
                    {{/each}}          
                &lt;/td&gt;
            {{/if}}   
        {{/each}}         
    &lt;/tr&gt;
</code></pre>
<p>can you please help me with this</p>
]]></description><link>https://forum.jsreport.net/topic/1851/div-styling-insid-td-tag-html-to-xlsx-report</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 15:45:00 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1851.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Dec 2020 07:42:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Div Styling insid td tag - html to xlsx report on Thu, 24 Dec 2020 07:43:05 GMT]]></title><description><![CDATA[<p>Hi , I am trying to apply some css styling for div tag inside td tag. but it is not working.</p>
<p>I want to apply different styling for the Adds and Removes label and featuretypename and name</p>
<pre><code>&lt;style&gt;
    table, th, td  {
  border: 1px solid black;
}
td{
vertical-align: top;
}
table {
  border-collapse: collapse;
}
  .line-break {
        overflow: scroll;
      
    }
    .adds-label {
    padding: 10px;
    color: #8CC641;
    font-weight: bold;
}
    
&lt;/style&gt;
&lt;tr&gt;
        &lt;th&gt;S&lt;/th&gt;
        {{#each standardChangesPerProduct}}
            {{#if @first}}
                &lt;td  class=&quot;line-break&quot;&gt;
                    {{#each addedFeatures}}                     
                                &lt;div&gt;{{featureTypeName}}&lt;/div&gt;
                                &lt;div&gt;{{name}}&lt;/div&gt;
                        {{/each}}           
                &lt;/td&gt;   
            {{else}}
                &lt;td  class=&quot;line-break&quot;&gt;
                    {{#each addedFeatures}}
                        {{#if @first}}
                                &lt;div style=&quot;color:red;&quot;&gt;&lt;b&gt;Adds&lt;/b&gt;&lt;/div&gt;
                                &lt;div&gt; {{featureTypeName}}&lt;/div&gt;
                                &lt;div&gt; {{name}}&lt;/div&gt;
                        {{else}}
                            &lt;div&gt; {{featureTypeName}}&lt;/div&gt;
                            &lt;div&gt; {{name}}&lt;/div&gt;
                        {{/if}}
                    {{/each}}    
                    {{#each removedFeatures}}
                         {{#if @first}}
                         &lt;br /&gt;
                            &lt;div class=&quot;removes-label&quot;&gt;Removes&lt;/div&gt;
                            &lt;div&gt;{{featureTypeName}}&lt;/div&gt;
                            &lt;div&gt;{{name}}&lt;/div&gt;
                        {{else}}
                            &lt;div&gt;{{featureTypeName}}&lt;/div&gt;
                            &lt;div&gt;{{name}}&lt;/div&gt;
                        {{/if}}
                    {{/each}}          
                &lt;/td&gt;
            {{/if}}   
        {{/each}}         
    &lt;/tr&gt;
</code></pre>
<p>can you please help me with this</p>
]]></description><link>https://forum.jsreport.net/post/8226</link><guid isPermaLink="true">https://forum.jsreport.net/post/8226</guid><dc:creator><![CDATA[Krishnaraj S Poojary]]></dc:creator><pubDate>Thu, 24 Dec 2020 07:43:05 GMT</pubDate></item><item><title><![CDATA[Reply to Div Styling insid td tag - html to xlsx report on Invalid Date]]></title><description><![CDATA[<p>Please try to replicate your problem in the playground and share the link back.<br />
We would take a look. Thank you<br />
<a href="https://playground.jsreport.net/" rel="nofollow">https://playground.jsreport.net/</a></p>
]]></description><link>https://forum.jsreport.net/post/8228</link><guid isPermaLink="true">https://forum.jsreport.net/post/8228</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Div Styling insid td tag - html to xlsx report on Invalid Date]]></title><description><![CDATA[<p>Hi,<br />
please find the link to my workspace<br />
<a href="https://playground.jsreport.net/w/krishnaraj.s.poojary/q3rNyGnT" rel="nofollow">https://playground.jsreport.net/w/krishnaraj.s.poojary/q3rNyGnT</a></p>
<p>css styling works when I run  with the  html recipe, but when I change it to html to xlxs, css styling not working</p>
]]></description><link>https://forum.jsreport.net/post/8232</link><guid isPermaLink="true">https://forum.jsreport.net/post/8232</guid><dc:creator><![CDATA[Krishnaraj S Poojary]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>