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 (4)

  1. Nice and useful tip Peter,Thanks for sharing

  2. Very useful and informative post. Thank you for this tip Peter 🙂

  3. Anonymous says:
    (The content was deleted per user request)
Skip to main content