Table automatic width

Is it possible to set up automatic table width in xwiki? It seems I am missing some important point. Currently all objects like tables, boxes etc. are formatted width full width. Thanks to this fact small tables look terrible on large screens. I have seen multiple times screenshots where the size was set automatically, for example here
Can someone advice me how to achieve this result?

You can use CSS to style them the way you want. See too.

Hope it helps

Hi Vincent,
thanks for your quick help! I was not sure if this is the right way. It works as expected. In case that someone else would face the same problem - it is enough to add following StyleSheetExtension:

table {
  width: auto;
  table-layout: auto;