Imagine an HTML template with the following structure:
-------------
|Header Data|
-------------
| |
| Main Data |
| |
-------------
|Footer Data|
-------------
The Header Data
, Main Data
, and Footer Data
sections have fixed height values.
But what if the content in the Main Data
section exceeds its fixed height? Can we make it look like this instead?
-------------
|Header Data|
-------------
| |
| MainData1 |
| |
-------------
|Footer Data|
-------------
-------------
|Header Data|
-------------
| |
| MainData2 |
| |
-------------
|Footer Data|
-------------
Is it achievable using only HTML and CSS?