Hi, Is there a way to cut a div into number of pieces using JavaScript or CSS. I have a long div with contents inside it. I need to split the div according to a certain height and show each division as a separate block. What is the easiest way to achieve this?
Suppose the height of the main div is 1500px. I need to split the div into 3 pieces each with a height of 500px.
If the height of the div is 1600px, it should be split into 4 pieces. First 3 with a height of 500px each and the last with a height of 100px.