Tables
Tables from Datablocks come as raw HTML to make it easy to seamlessly integrate the tables with the rest of the website. This means that they consist of HTML tags, as shown in the example below with tags as <th> and <tr>.
The tables have some general classes that all widgets have such mf-widget, mf-table-wrapper and mf-table. They also have some widget-specific classes, such as stock-symbol and .latest-prize.
Example of table structure:
<div class="mf-widget mf-stock-table mf-lang-en mf-WIDGET-ID mf-table-wrapper">
<table class="mf-table">
<tbody>
<tr>
<td class="table-head mf-tbl-col-0">Ticker</td>
<td class="stock-symbol mf-tbl-col-1">ABC A</td>
</tr>
<tr>
<td class="table-head mf-tbl-col-0">Latest Price</td>
<td class="latest-price mf-tbl-col-1">9.00</td>
</tr>
</tbody>
</table>
</div>Example styling
Below is an example of a styled table with the used CSS.

CSS
CSS for positive and negative numbers

Responsiveness
The tables are not responsive. Since the data in the tables is presented in columns, it is common to work with an overflow scroll.
Here are some examples of customer solutions: Stillfront and JM.
Last updated
Was this helpful?