Wiki Quick Tip 11 (HTML): Code blocks loosing border when saving article
When you insert code blocks into your article, the online editor is automatically adding borders to the code blocks.
But when you save the article, you might see that your code blocks are losing their borders...
Here's the solution...
Edit your article again, go into HTML editor.
Replace all instances of :
<div class="reCodeBlock">
with
<div class="reCodeBlock" style="border-style: solid;border-width: 1px; padding: 1px 4px;">
Just as an example, to demonstrate what happens:
Check rev 6 of this article, and then check the final version.
"One HTML fix a day, keeps the administrator away!"
Comments
- Anonymous
April 04, 2018
An excellent tip! Thanks. - Anonymous
April 05, 2018
Nice and useful tip Peter,Thanks for sharing - Anonymous
April 07, 2018
Very useful and informative post. Thank you for this tip Peter :) - Anonymous
April 18, 2018
(The content was deleted per user request)