Click here to Skip to main content
14,454,912 members
Rate this:
Please Sign up or sign in to vote.
See more:
I would like to generate squares within borders of a specific shape (Croatia). This is an example: https://image.shutterstock.com/z/stock-vector-croatia-map-design-white-square-black-background-with-flag-croatia-1460901020.jpg

What I have tried:

I was thinking about using image maps to generate square in such shape. Squares of image maps are transparent and I cannot fill them with colors or images.

I was searching around but I can't find something similar. I was thinking about stacking divs next to each other but it could be even more hard since they need to create a shape of Croatia and never break formation.

Do you have any other idea that might work?</pre>
Posted
Updated 12-Feb-20 13:54pm
v2

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100