jQuery Mobile - Table Reflow Custom Styles


You can specify the custom styles for the reflow table.


Following example demonstrates the use of table reflow custom styles in the jQuery Mobile Framework.

<!DOCTYPE html>
      <title>Table Reflow Custom Styles</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <link rel = "stylesheet" href = "http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
      <script src = "http://code.jquery.com/jquery-1.11.3.min.js"></script>
      <script src = "http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
         #table_columns thead th {
            color: #FF00BF;
            font-weight: bold;
         #table_columns tbody td {
            color: #00BFFF;
            font-weight: normal;
      <div data-role = "header">
      <table data-role = "table" id = "table_columns" data-mode = "reflow" 
         class = "ui-responsive">
               <th data-priority = "1">Position</th>
               <th data-priority = "2">Rating</th>
               <th data-priority = "3">Points</th>
               <td>SOUTH AFRICA</td>
               <td>NEW ZEALAND</td>
               <td>SRI LANKA</td>
               <td>WEST INDIES</td>
      <div data-role = "footer">


Let's carry out the following steps to see how the above code works −

  • Save the above html code as jqm_table_reflow_custom_styles.html file in your server root folder.

  • Open this HTML file as http://localhost/jqm_table_reflow_custom_styles.html and the following output will be displayed.

Kickstart Your Career

Get certified by completing the course

Get Started