0

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?

2
  • really?? can you give an example scenario?? Commented Jul 29, 2010 at 5:02
  • Answered below. It was a sass content type thing, which obviously didn't happen when the style was inline. Commented Jul 29, 2010 at 18:24

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.