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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 654 views
  • 0 likes
  • 2 in conversation