I was searching and found some posts which are similar but none of them answered to my "special" question.

What I have is a page with header and footer styled statically. In the middle (the content) can be some HTML+CSS from the users.

What I don't want is that they define some CSS rules which would mess up the header, footer or the whole body.

Using an iframe is not really a solution. 

Thanks