Small example which shows how to use CSS to set and resize the X3D-view. The code provides a simple overlay-button which allows to toggle the x3d-element width/height from 50% to 100%. As always, you can use percentage (e.g. 50%), pixel (e.g. 100px) or any other unit-length supported in CSS/HTML.