Actually the data comes from database in a single variable. If I print that variable it prints that table. And there are a lot of tables like that. If I need to add some HTML elements then I have to edit that structure manually.
As I said, it looks to me as though a table would be appropriate.
Are you saying that you can get the variable to print our divs etc instead of tables?