How to create an independent HTML block ?
I want to know if there is some way to create an independent HTML block .
For more explanation :
My problem is that I have a webpage in which I allow some users can add content (may contain HTML & CSS )
I allow them to add their content inside a certain <div> block , but sometimes their content may not be clean code , and may contain some DIVS with no end , Or even some DIV end with no starting DIV
This sometimes distort my page completely
Is there any way to make their content displayed independently from my parent div , so that my div is first displayed well , and then the content inside it is displayed ?
I'm sorry for long message .
Thanks for any trial to hepl
Use an IFRAME. You'll need those snippetts in separate files but keep in mind that valid HTML doesn't require and HTML, HEAD or BODY tags. You will need to pre-pend a TITLE but that should do it.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Thank u v. Much
I will do.
yes , It seems to be the best solution ..
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)