<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Horizontal padding in rtf tables using a template in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366929#M18817</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion, it took me straight to the solution. I'm using this template now that is working as I wanted:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;                                                                
   define style times8p / store = SASUSER.TEMPLAT;                            
      parent = styles.default;                                                
         (...)
	  class table /
		 frame = hsides
		 rules = groups
		 borderwidth = 1px
		 borderstyle = solid
		 bordercolor = black
		 borderspacing = 0
		 cellpadding = 10px;
	  &lt;FONT color="#FF0000"&gt;class cell /
	     paddingright = 15;&lt;/FONT&gt; /* Increase/decrease this number to change the spacing between one cell and the next one */
         (...)
   end;                                                                       
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Jun 2017 12:51:59 GMT</pubDate>
    <dc:creator>emera86</dc:creator>
    <dc:date>2017-06-14T12:51:59Z</dc:date>
    <item>
      <title>Horizontal padding in rtf tables using a template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366488#M18803</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a SAS EG (7.1 HF1 (7.100.0.2002) (64-bit)) user trying to add to a customized template of my own some horizontal padding to table cells to avoid the numeric results to be too close as I have removed the vertical border lines from the table layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried increasing&amp;nbsp;&lt;STRONG&gt;cellpadding&lt;/STRONG&gt; (seemed like a very promising parameter to change according to documentation) and also adding a &lt;STRONG&gt;pretext=' &amp;nbsp; ' and posttext=' &amp;nbsp; '&lt;/STRONG&gt; as suggested &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/td-p/239597" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;but they don't make the desired&amp;nbsp;change in my output. Maybe the reason is that I'm not writing it in the proper place inside the template. Here the code of my template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;                                                                
   define style times8p / store = SASUSER.TEMPLAT;                            
      parent = styles.default;                                                
      replace fonts /                                                         
         'TitleFont2' = ("Times",8pt,Italic)                             
         'TitleFont' = ("Times",8pt,Italic)                              
         'StrongFont' = ("Times",8pt,Bold)                                    
         'EmphasisFont' = ("Times",8pt,Italic)                                
         'FixedEmphasisFont' = ("Times, Courier",8pt,Italic)                  
         'FixedStrongFont' = ("Courier New, Courier",8pt,Bold)                
         'FixedHeadingFont' = ("Courier New, Courier",8pt,Bold)               
         'BatchFixedFont' = ("SAS Monospace,Courier New,Courier",8pt)         
         'FixedFont' = ("Courier New, Courier",8pt)                           
         'headingEmphasisFont' = ("Times",8pt,Bold Italic)                    
         'headingFont' = ("Times",8pt,Bold)                                   
         'docFont' = ("Times",8pt);                                           
      replace color_list /                                                    
         'fgB2' = CX000000                                                    
         'fgB1' = CX000000                                                    
         'fgA4' = CX000000                                                    
         'bgA4' = cxFFFFFF                                                    
         'bgA3' = cxFFFFFF                                                    
         'fgA2' = CX000000                                                    
         'bgA2' = cxFFFFFF                                                    
         'fgA1' = CX000000                                                    
         'bgA1' = CX000000                                                    
         'fgA' = CX000000                                                     
         'bgA' = cxFFFFFF;                                                    
      replace Output from Container /                                         
         background = colors('tablebg')                                       
         rules = GROUPS                                                       
         frame = BOX                                                          
         cellpadding = 7                                                      
         cellspacing = 2                                                      
         bordercolor = CX000000                                               
         borderwidth = 1;                                                     
      replace TitlesandFooters from Container /                               
         font = Fonts('TitleFont2')                                           
         foreground = colors('systitlefg'); 
	  class table /
		 frame = hsides
		 rules = groups
		 borderwidth = 1px
		 borderstyle = solid
		 bordercolor = black
		 borderspacing = 0
&lt;FONT color="#FF0000"&gt;		 cellpadding = 10px&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;		 pretext = '   '
		 posttext = '   ';&lt;/FONT&gt;
	  context '.header' /
	  	borderbottomstyle = solid
		borderbottomcolor = black
		borderbottomwidth = 1px;
   end;                                                                       
run;&lt;/PRE&gt;&lt;P&gt;Here my test ouput where I have circled some examples of things that I would like to avoid/solve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9349iAC874EA51748E195/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="horizontal_padding.PNG" title="horizontal_padding.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any tip or advice!!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 11:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366488#M18803</guid>
      <dc:creator>emera86</dc:creator>
      <dc:date>2017-06-13T11:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontal padding in rtf tables using a template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366497#M18804</link>
      <description>&lt;P&gt;In the proc report, define for each column, make sure there is enough width to cover the full text:&lt;/P&gt;
&lt;PRE&gt;proc report ...;
...
  define dead / style(column)={width=6cm};
  ...
run;&lt;/PRE&gt;
&lt;P&gt;Probably alos a good idea to post sample required output in future rather than actual data&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 12:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366497#M18804</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-13T12:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontal padding in rtf tables using a template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366589#M18810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick response, but is not exaclty what I was trying.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First of all I would like to implement the extra space through a template rather than including some text in my procedure. I would like a general solution not only for proc report but for every table on&amp;nbsp;which my custom style is applied.&lt;/LI&gt;&lt;LI&gt;Secondly I don't want to fix a column width because that would oblige me to personalize the column width every time I produce a table to adjust it to the specific case: I just want a custom padding (let's say 10px) to be added on both sides of the cell content.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As you are asking for an example of what I have and what I would like to obtain here I'm providing a simple example to illustrate the issue. Here you have a table on which the column width is adjusted to the longer content, in this case the header text:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9352i79A1AC4011412A48/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="narrow.PNG" title="narrow.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To beautify this table I would like to stablish some margin (padding-right and padding-left in CSS language) to the cells content as is shown in the following table on which the effect has been exaggerated and highlighted in yellow to help visualization:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9353iF28A120905EEC864/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="wider.PNG" title="wider.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In CSS you can do it by defining the style of the padding on both sides to be 20px.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;th {
padding-left:20px;
padding-right:20px;
}
td {
padding-left:20px;
padding-right:20px;
}&lt;/PRE&gt;&lt;P&gt;But I would like to implement it on my PROC TEMPLATE. What is the element that I need to modify? the name of the parameter that controls it? is there any way to implement some CSS code inside a PROC TEMPLATE?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help again and sorry if I wasn't clear in my first post.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 14:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366589#M18810</guid>
      <dc:creator>emera86</dc:creator>
      <dc:date>2017-06-13T14:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontal padding in rtf tables using a template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366751#M18813</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131519"&gt;@emera86&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your quick response, but is not exaclty what I was trying.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First of all I would like to implement the extra space through a template rather than including some text in my procedure. I would like a general solution not only for proc report but for every table on&amp;nbsp;which my custom style is applied.&lt;/LI&gt;
&lt;LI&gt;Secondly I don't want to fix a column width because that would oblige me to personalize the column width every time I produce a table to adjust it to the specific case: I just want a custom padding (let's say 10px) to be added on both sides of the cell content.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As you are asking for an example of what I have and what I would like to obtain here I'm providing a simple example to illustrate the issue. Here you have a table on which the column width is adjusted to the longer content, in this case the header text:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="narrow.PNG" alt="narrow.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/9352i79A1AC4011412A48/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To beautify this table I would like to stablish some margin (padding-right and padding-left in CSS language) to the cells content as is shown in the following table on which the effect has been exaggerated and highlighted in yellow to help visualization:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="wider.PNG" alt="wider.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/9353iF28A120905EEC864/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In CSS you can do it by defining the style of the padding on both sides to be 20px.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;th {
padding-left:20px;
padding-right:20px;
}
td {
padding-left:20px;
padding-right:20px;
}&lt;/PRE&gt;
&lt;P&gt;But I would like to implement it on my PROC TEMPLATE. What is the element that I need to modify? the name of the parameter that controls it? is there any way to implement some CSS code inside a PROC TEMPLATE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help again and sorry if I wasn't clear in my first post.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The ods equivalent is style = [paddingleft = 20 paddingright=20] but you will want to pick a unit as PX, assuming that is pixel, is not supported, cm, em, in mm or pt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only valid in markup family, printer family and RTF destinations.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 19:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366751#M18813</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-13T19:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontal padding in rtf tables using a template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366929#M18817</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion, it took me straight to the solution. I'm using this template now that is working as I wanted:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;                                                                
   define style times8p / store = SASUSER.TEMPLAT;                            
      parent = styles.default;                                                
         (...)
	  class table /
		 frame = hsides
		 rules = groups
		 borderwidth = 1px
		 borderstyle = solid
		 bordercolor = black
		 borderspacing = 0
		 cellpadding = 10px;
	  &lt;FONT color="#FF0000"&gt;class cell /
	     paddingright = 15;&lt;/FONT&gt; /* Increase/decrease this number to change the spacing between one cell and the next one */
         (...)
   end;                                                                       
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Jun 2017 12:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Horizontal-padding-in-rtf-tables-using-a-template/m-p/366929#M18817</guid>
      <dc:creator>emera86</dc:creator>
      <dc:date>2017-06-14T12:51:59Z</dc:date>
    </item>
  </channel>
</rss>

