on associated click event of the button use jquery to rotate the div and all its children
function changeOrientation(){
$('#div').attr('webkit-transform', 'rotate(90deg)');
//Loop inside all elements in the div and add the same to all the elemnt
}
javascript code
function changeOrientation(){
document.getElementById('#div').style.webkit-transform = 'rotate(90deg)';
//Loop inside all elements in the div and add the same to all the elemnt
for(var count = 0; count < document.getElementById('#div').children.length; count++){
document.getElementById('#div').children[count].style.webkit-transform = 'rotate(90deg)';
}
}
give a try and let me know if it works.