I'm building my own website for a project. I have an event page where I show all upcoming events. Every time you add an event, the page will get bigger. ATM, the footer is in the middle of the page because there are not enough events.
The problem is, I want the footer to be on the bottom of the screen, unless the page is bigger than the screen. If the page is bigger than the screen, the footer should be on the bottom of the page.
I tried to use height: 100%
or height: 100vh
but they put the height on "fit to screen", so if there are for example 20 events (bigger than the screen), the footer will be stuck on the bottom of the screen and the events will go through the footer.
The page now looks like this:
and the table is build up like this:
<table class="events-table" >
<thead>
<tr>
<th class="event-time" scope="col">Date/Time</th>
<th class="event-description" scope="col">Event</th>
</tr>
</thead>
<tbody>
<tr>
<td>
#_EVENTDATES
#_EVENTTIMES
</td>
<td>
#_EVENTLINK
{has_location}<br/><i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
</td>
</tr>
</tbody>
</table>