I’m generating tables based on some fields from database and I need to specify different style for each table. How could specify different style for each table.
This is my code
<table width="100%">
<% @content_data['personnel_cv_data_types'].each do |personnel_cv_data_type| %>
<tr width="100%">
<td>
<fieldset>
<legend>
<table style="font-size:13px;"width="100%" class="personnel_cvdata_view_table_first_row">
<tr>
<td>
<%= @content_data['lable_title_'+personnel_cv_data_type] %>
</td>
<td>
<a onClick="add_new_entry('<%= personnel_cv_data_type %>')">Add <%= @content_data['lable_add_'+personnel_cv_data_type] %></a>
</td>
</tr>
</table>
</legend>
Here each table takes the same style as personnel_cvdata_view_table_first_row, How could generate tables with different style class for example
class="personnel_cvdata_view_table_first_row_1"
class=""ersonnel_cvdata_view_table_first_row_2
and so on an and i can write separate style for each table
Instead of
Use
And then you can create your tables like this