BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

We are using a style override in proc tabulate like this voor HTML output:

PROC TABULATE DATA=resultaat STYLE={font_size=1};

This works fine, font_size is reduced compared to if we don't use the style override.

But we also want to make the actual tables smaller. I thought using CELLPADDING would do the trick, but it seems to have no effect whatsoever. This is what we do:

PROC TABULATE DATA=resultaat STYLE={font_size=1 cellpadding=2pt};

What can I do to make the cells in the table smaller to get a smaller table?

Cheers,

Gahan
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi!
You could try making cellpadding in pixels instead of points: STYLE={cellpadding=1px};

But, you should also use cellpadding on the TABLE statement, because it is an attribute that applies to the table "structure", so like changes to RULES and FRAMES, it goes on the TABLE statement:

table var1,
var2*numvar/
STYLE={cellpadding=1px};

The font_size of one will work on the PROC TABULATE statement, but cellpadding needs to be on the TABLE statement.

cynthia
deleted_user
Not applicable
Hi Cynthia,

Works like a charm. Thank you very much!

Cheers,

Gahan

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 641 views
  • 0 likes
  • 2 in conversation