elgg_list_entiy presents the object as a collection of <li> tag under <ul> tag. thus particularly modifying style will impact the whole site. so generally developers tries to bypass this functions and write its own code. but then he has to implement everything like pagination, and sql stuff.
<style type="text/css">
.table_order_list {
display:table;
border-collapse: collapse;
}
.table_order_item {
display: table-row;
}
</style>
$options = array('types' => 'object',
'subtype' => 'subtype',
'list_class'=> 'table_order_list',
'item_class' =>'table_order_item'
);
echo elgg_list_entities($options);
These way you can achieve a table representation of elgg_list_entities.
(2) gallery representation
If you add ‘list_type’=>’gallery’ as parameter then elgg will try to represent object in gallery form. and to further achieve afire tuning as per your need you can use gallery_class and item_class. ELGG will append the values of gallery_class to ul tag and item_class to li tag.
$options = array('types' => 'object',
'subtype' => 'subtype',
'gallery_class'=> 'my gallery_ul',
'item_class' =>'my_gallery_item'
);
echo elgg_list_entities($options);