It is necessary to create the similarity of such a table. 
Data is taken from the database. The problem is that there is not even an idea how to do it. I do not know what to take and where to start. If I just drew a table by hand using html (every cell), it would seem to be much easier. Would register styles in css and the trick is in the hat. But I pull the records out of the database using this code:
$row = mysql_fetch_assoc($res); print '<table><tr>'; foreach ($row as $name => $value){ print "<th>$name</th>"; } while($row){ print '<tr>'; foreach($row as $value){ print "<td>$value</td>"; } print '<tr>'; $row = mysql_fetch_assoc($res); } print '</table>'; I do not ask to write code for me. And at least give some impetus and direction. Perhaps you need to somehow pull out the data differently, or to draw a table manually? Because right now I cannot divide the cells in any way, there is only table , th , tr , td . That is, in css I can make changes only for everything together, and not for each element separately. I apologize if the question is stupid. I really hope for help.

javascript, how pagination works. You can say you are doing a DataGrid, which by the way is not so little. Look at the finished examples, maybe you won't need to fence your bike - Vasily BarbashevCSS? Absolutely nothing. Where do the data come from, create styles and everything works - Vasily Barbashev