This sample application features a header, footer, and a content div that includes a table displaying various statistics of basketball players.
One issue I encountered was with the footer when there were many entries in the table. This caused the footer to cover up some of the other entries, as shown in the image below.
However, when I clicked in the middle, the footer disappeared, solving the problem momentarily, as seen in the picture below.
I am looking for a generic solution to detect if there are many entries in the table and hide the footer completely. Is there a way to address this issue efficiently? I am new to web development and not familiar with advanced CSS techniques.
Here is a link to the FIDDLE.
The code snippet below outlines my idea:
if the table contains more than x entries
{
hide footer
}
else
{
show footer
}