I have a problem like this:
my_function {
wp_register_style('ln_table', plugins_url('css/ln_table.css',__FILE__ ));
wp_enqueue_style('ln_table');
$arr = array('This', 'is', 'a', 'big', 'array', '...');
// My table is big and complex, this only a exemple
return "
<table class = 'my-css'>
<tr>
<td class = 'style1'>$arr[0]</td>
<td class = 'style2'>$arr[1]</td>
<td class = 'style3'>$arr[2]</td>
</tr>
<tr>
<td class = 'style4'>$arr[3]</td>
<td class = 'style5'>$arr[4]</td>
<td class = 'style6'>$arr[5]</td>
</tr>
</tr>
...
...
...
</tr>
</table>
";
}
When I call my function, the table appear before css, then my css classes were applied. That's bad looking when the page is loading.
How can I apply my css classes first, and then is my table?
Thank you so much and sorry for my English!
