I want this but so it adjusts to sizes entered in a form on a webpage in fairly normal HTML/CSS:

Way back in the 1990's you could show the proportions of a box in 3D using VRML and have the controls adjustable with nice sliders/text entry fields. It also would not take all day to work out. The box could be lit and you could see it in perfect 3D at any angle.
A decade on and I am stumped as to how best to represent a simple box with relative proportions. I want something that will work in all browsers.
How hard can a box be?