This works:
display: box;
display: -webkit-box;
display: -moz-box;
This also works:
.attr('style','display: -moz-box')
This doesn’t 🙁
css( display, '-moz-box')
Demo:
http://jsfiddle.net/TomasReichmann/K3nQg/
I am building a plugin that displays a window-like resizeable modal box with header that can have variable height and content, that fits inside the box and displays a scrollbar if it’s content is too long.
You were missing the quotes around
display; when passing a property and a value to.css(), both must be strings:jsFiddle demo