there is html which I insert into document dynamically, to it there is also css. it is also easy to insert using
var style = document.createElement('style'); The problem is that it can be so that inserted into a certain div html crawls out of the borders where the html is inserted because of the css styles. Is it possible to somehow create an artificial border like this div browser.