based on this example from @Bergi jsfiddle.net/CH9K8/1321/
the code below work fine:
#center{
display:inline-block;
}
but if I try this don't work in Chrome and Safari
$('#center').css('display','inline-block');
nor
document.getElementById('center').style.display='inline-block';
any solution? thanks.
EDIT ... ok now I understand why you say it work fine. I have tried it in Chrome (v30) and safari v5.1 And not work ... but yes it work In Explorer, Firefox, and Opera. So now the question is ... some solution for Chrome and Safari ?