tags:

views:

25

answers:

1

Whenver I dynamically replace the html of a element using jquery.html(), no external css (excluding those inheriting from parent elements) gets applied into the elements. By external css, I mean those not directly input into the page via style tag (without src property).

Is there a way to make them apply?

+1  A: 

They should apply. You're probably deleting a necessary element which is required by the styles in order to apply. We could confirm it if you had posted your code.

meder
It was a problem with the content-type of a sass generated css. You are right, it works perfectly.
Daniel Ribeiro