I am trying to make Ebook using HTML .For this purpose I am using turn.js I have width 400px and height 300px. I want to create div dynamically for the text that does not fit in 50% X 40% div size. Because I want to have different font size for different screen size, I tried
function createDiv(theWidth, theHeight){
$('<div class=\'box\' style=\'width:'+theWidth+'px;height:'+theHeight+'px;\'/>')
.appendTo('.content');
}
which i copied from Auto-size dynamic text to fill fixed size container, but it did not seems to work for me.