Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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 – 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.

The CDF file can be downloaded from here

As you can see there is no horizontal or vertical white space around the app.

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.

share|improve this answer
I will be able to download 8.0.4 in a couple of months, so that will solve my problem. Thanks. – SixWingedSeraph Feb 26 '12 at 1:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.