Creating Effective Web Applications


Customize FlexLists web export layout

28 10 2008, Michiel van Vlaardingen on FlexLists

Some users ask to customize the layout of the FlexLists web export script. Therefore I created a small guide:

It is currently partly possible to customize the layout of the web export ( available from the Publish tab).  You can not do it directly in the FlexLists website, but if you are familiar with HTML/CSS  there are some things you can change.

Basically the output of the FlexLists web export script looks like:
<table class="FLEXlist">
        <tr> <th>field name 1</th> ............</tr>
       <tr> <td> field 1 value</td> ..............</tr>

So if you insert the following code before the   <script....>  from flexlists:
<style type="text/css">
table.FLEXlist{width: 500px;}
table.FLEXlist thead th{ background-color: #666666; color: white; text-align: left; }
table.FLEXlist tbody td{ border: 1px solid #666666; }

You will see a different appearance.    Have a look at:  to see possible properties and values that are allowed in this small piece of CSS.     To explain a bit:  the first row are the table properties, the second row the properties of the header cells  and the third row are the properties of the other table cells.  So this particular example  gives the table a standard width of 500 pixels,  makes the header have a dark background with white text and left-aligned text.  And finally adds dark borders around the data cells.

05 07 2015: Export Excel files
17 03 2011: Brand New Observu Coming
14 12 2010: Print Details