css has disappeared

css has disappeared

hello experts,

i'm adding a div to the dom like this

$('#div_on_page').html( "<div id='new_content'></div>");

i also tried this which has the same results

$('#div_on_page')[0].innerHTML = "<div id='new_content'></div>";

the problem i'm having is that the css formatting is lost within the new_content div.

anyone know how to retain it?

thanks

percy