Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

Wiki Quick Tip 11 (HTML): Code blocks loosing border when saving article

$
0
0

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!"


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>