If you cannot use a second HTML element*, then implement the gradient as a texture, map it to a plane and put the plane just in front of the camera.
* Honestly, I have never seen a platform so restrictive, that it allows only a single HTML element to show up.