Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Adjust space between table in html

Alexandre17
Tera Expert

Hello. I am construction business rule, to generate pdf. The BR search with GlideRecord and push in array.  In a loop, will be put in the pdf the field, etc... 

 

The code 

 while (table_etiquetas_funci.next()) {
        obj_etiquetas_funci =
			"<html><style>table {float: left; width: 50%; height: 150px;} td {border: 1px solid #0317fc; text-align: left; padding: 1px;}</style><table><tr><td>" +
	"<p style='font-size:12px;'><b>" +			
            "DESTINO: " +
            table_etiquetas_funci.getDisplayValue('plataforma_suporte.u_prefixo') + " " +
            table_etiquetas_funci.getDisplayValue('plataforma_suporte.name') + " " +
            table_etiquetas_funci.getDisplayValue('plataforma_suporte.u_location.state') + " " + //"<br>" +
	"<center><i>    <p style='font-size:15px;text-transform:uppercase';> " +
            table_etiquetas_funci.getDisplayValue('funci_beneficiario.name') +
            "      </i></center></b></p>" +
            "<p style='font-size:10px'>" +
            "End: " +
            table_etiquetas_funci.getDisplayValue('funci_beneficiario.department.u_location.street') + "<br>" +
            "Cidade: " +
            table_etiquetas_funci.getDisplayValue('funci_beneficiario.department.u_location.city') + " " +  
            "UF: " +
            table_etiquetas_funci.getDisplayValue('funci_beneficiario.department.u_location.state') + " " +  
            "CEP: " +
            table_etiquetas_funci.getDisplayValue('funci_beneficiario.department.u_location.zip') + " " + "<br>" +
            "Quant: " +
            table_etiquetas_funci.getDisplayValue('quantidade_por_funci') + " " +  
            "Produto: " +
            table_etiquetas_funci.getDisplayValue('produto') + "<br>" +
            "</p>" +
            "<p style='color:Blue;  font-size:10px'>" +
            "REMETENTE: AAAAA BBBB tel:(11)1111-1111" +
            "</p>" +
	   "</td> </tr></table></html>";

Now this is a print:

sn.etiqueta.jpg

 

I need this: 

sn.etiqueta-2.jpg

 

The question is: how to increase space between the boreers of the table, same second picture?

 

 

2 REPLIES 2

Arpit Modi
Tera Expert

Increase padding in css.

tks.. i include border-spacind.. and this works...

 

<html><style>table {float: left; width: 50%; height: 150px;border-spacing: 15px;}.....