another option is to use jQuery to determine the size of the browser and then resize the thickness. it's not as elegant as a CSS solution, but just to complete the answer ... here's a way to do it.
var displayWidth = $(window).width() * 0.9;
var displayHeight = $(window).height() * 0.9;
$("#TB_window").animate({
marginLeft: 0 - (displayWidth + 50) / 2,
marginTop: 0 - (displayHeight + 50) / 2,
height: displayHeight + 50,
width: displayWidth + 30
}, {
duration: 800
});
$("#TB_ajaxContent").animate({
height: displayHeight,
width: displayWidth
}, {
duration: 800
});
source
share