Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How can I make notebook cell's background become transparent? And can be saved as html with the translucent or transparent effect?

One of the use is in HTML files, the background of cell hides the background of the web page's background. I wish there would be some setting in Mathematica and could be changed to HTML with transparent background, if no such direct manipulation, then should post process the HTML source file.

Also, it it possible to make an Image as the background of the Notebook? something like the part effect of some slideshow stylesheet?

share|improve this question
    
Related, possible duplicate: (252) -- please clarify how your question is different, if it is. –  Mr.Wizard Aug 14 '13 at 9:44
    
What good would this be? What in your notebook is behind the cell background that you want to make visible? –  m_goldberg Aug 19 '13 at 3:48
    
@m_goldberg Hi, The use is in HTML files, the background of cell hides the background of the web page's background. I wish there would be some setting in Mathematica and could be changed to HTML with transparent background, if no such direct manipulation, then should post process the HTML source file. –  HyperGroups Aug 19 '13 at 10:07
add comment

2 Answers

You may wish to link your own .css file with the background of cells set to be transparent.

share|improve this answer
add comment

Possible solution:

SetOptions[Rasterize, Background -> None]
Export["123.html", EvaluationNotebook[], "MathOutput" -> "PNG"]

It produces html with transparent png files. Unfortunately Background->None doesn't work directly in html Export. Then you can easily change the background in your html:

enter image description here

Another possibility (without Background -> None) is

Export["123.html", EvaluationNotebook[], "MathOutput" -> "SVG"]
share|improve this answer
add comment

Your Answer

 
discard

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.