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
Diamond | Level 26
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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