Hey Guys...I think this is the best forum for this question so here goes... If you have ever sold anything on ebay, you know that your description code is displayed along with the ebay website code. Ebay does NOT use an IFRAME to display your add. Yet, when you view an item's listing the adds css and html doe not interfere with the Ebay layout or css. The same thing can be said for webmail email clients such as yahoo and hotmail. SO my question is this, How can I accomplish this same thing. AGAIN, I do not want to use an IFRAME.....any thoughts? Thanks
Put it in a DIV, put an ID on the DIV, then have your back-end code add the name of that ID before EVERY class, tag and ID declaration in the CSS the user tries to save. So when they 'save' this to your site: p { margin:1em 0; } Your backend saves it as: #userContentArea p { margin:1em 0; } Quick, simple, prevents them from being able to control tags you don't want them to like BODY... you could even trap 'body' in the CSS and change it to #userContentArea. Basically, 'safely' translate the code by stripping out offending headers, swapping conflicting elements and using an ID to isolate the CSS.