Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Here is the question

Please see the image to view

ask ques.jpg - Google Drive[^]


https://drive.google.com/file/d/1IHNzXZqECZn6rsD2lX9lKxlZqohleG7y/view?usp=sharing

Box split:

Problem Statement : Initially design a square in a page.

Upon clicking on the square, the square divides itself into four smaller squares of equal size.

Further clicking on any smaller squares divides it equally into 4 more squares.

Note : At any given point the length and breadth of the largest square should be the same as
the initial square size

What I have tried:

I have tried to make single box only.
Posted
Updated 11-May-22 23:34pm
Comments
Richard MacCutchan 11-May-22 11:00am    
What is the question?
[no name] 11-May-22 11:25am    
I missing is his want to somone answer (solve problem). Maybe for homework. (really, to code a example) to steps what he says
Richard MacCutchan 11-May-22 11:36am    
Sorry, this site does not provide code to order.

1 solution

If you cannot do that in CSS:) take an image of boxes, and when click to change an image. But thats not what you want. Be smart:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900