Jallen's Profile Page
| Home | Projects | Blog | About | Contact |
C++ Generated HTML Spiral
This is just a very simple program made in about 10 minutes. It was just a test of a concept I thought of when just playing quake live. Essentially how it works, is there are 4 classes defined in the style sheet, and each one has a different side set to have a border. As well as this, each one has a padding on the opposite side of the border of a few pixels. The program simply loops 450 times alternating between the div classes (one inside the other) and essentially draws the spiral from the outside in.
Screenshot:
Shot taken with chrome, I usually use Firefox but it didn't appear to be able to correctly render 450 nested divs :P

More Info:
You can get the source code Here. And you can view the generated page Here (may not display right in your browser).
blog comments powered by Disqus
This site has served 25744 page requests.
Page by James Allen. If you wish to use the content or structure of this page please contact me via the contact page.