Math with CSS

Is CSS Turing Complete? No, probably not. But we can still have fun!

Read the FAQ below if you have any questions


fib.css

Calculates the Fibonacci sequence


pi-nilakantha.css

Approximates PI via Nilakantha's Series (only works in Firefox)

Dies on Firefox at iteration #164 with PI = 3.14159264


pi-leibniz.css

Approximates PI (very slowly) via Leibniz formula (only works in Firefox)

Dies on Firefox at iteration #478 with PI = 3.1441110