# Too much vertical space in a CDF file

When I prepare a CDF file to be included into a web page, far too much blank vertical space is left over the pane. Is there a command to reduce that? This is illustrated by the files SimpleDemos.nb and SimpleDemos1.cdf.

-
How did you prepare the .cdf file? – Heike Feb 23 '12 at 18:00
I made the following guide for myself when CDF first came out. I understand it is irrelevant now because of Mma 8.0.4, but I would still like to know if there a command that reduces the size of a hidden cell to zero. – SixWingedSeraph Feb 26 '12 at 1:42
The guide is at abstractmath.org/Mathematica/MakingPlugIn.pdf – SixWingedSeraph Feb 26 '12 at 1:55

You can easily remove all white space around your CDF app. Simplest way - use CDF Web Deployment Wizard available in Mathematica version 8.0.4. It is designed to remove the white space around interactive content and embed it tigtly into a webpage. Follow File » Deploy » Embed in HTML… Here is the result of this workflow applied to the app from your file SimpleDemos.nb and embeding it into WordPress.
I would also recommend controlling the size of embedded CDF with ImageSize->{w, h} option for your internal graphics in Manipulate[...]. Actual app size on the page will be slightly larger due to Manipulate[...] interface with dimensions provided by the wizard. If you would like detailed instructions follow this video.