Welcome! Log In Create A New Profile


Issue with HTML control in WB25

Posted by MediOffice 
Issue with HTML control in WB25
January 19, 2022 12:08PM
I have a document which is created using an HTML editor (CKEditor). I'm displaying this using an HTML control on a page. It works fine.
However, if the document has CSS which sets the margins of the document then it applies these margins to my whole page - the effect is that my web app has margins!
How can I stop the HTML/CSS inside the control affecting the overall page?
This is an example of the CSS that's doing it:
<body style="font-family: none; margin-top: 20px; margin-left: 20px; margin-right: 20px;">
Re: Issue with HTML control in WB25
January 19, 2022 03:12PM
this css "<body style..." changes the style of the body (ie the whole page)


- either you replace that by something else in the html before displaying it,
- OR you put your html field in a separate page that you display in an iframe in your main page... this wa, the "body" will be the secondary page


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.