primary school sangasar

ta: Barwala, dist: Ahmedabad, C.R.C: Hebatpur

In this blog

December 14, 2013

How To Add Code Box Area In Blogger Posts

It is good to have a code box area in your blogger posts if your blog is about blogger tutorials, blogger widgets, blogger templates or it deals with any kind of blog customization. It will become easy for anybody to locate the html code and easily copy and paste the code for using it. It will also give a well organised look to your blog posts. Just read and follow all the steps given below to get this function in your blogger blog for each post.



Step1: Log in to your blogger account. Go to Dashboard >> Template.

Step2: Click on the Customize.

Step3: GO to Advanced >> Add CSS.

Step4: Copy and Paste the following code in the Add CSS section.



.code { background:#f5f8fa; background-repeat:no-repeat; border: solid #5C7B90; border-width: 1px 1px 1px 20px; color: #000000; font: 13px 'Courier New', Courier, monospace; line-height: 16px; margin: 10px 0 10px 10px; max-height: 200px; min-height: 16px; overflow: auto; padding: 28px 10px 10px; width: 90%; } .code:hover { background-repeat:no-repeat; }



Step5: Now whenever you are composing new post , just select HTML section and paste the following code.

<div class="code">
Paste your code
</div>

Step6:  Go to Compose mode.  Replace Paste your code with your code. Complete your post and publish it.

No comments:

Best Viewed in Internet Explorer 7 or above, Google Chrome,Operamini,Uc browser and FireFox 3.5 or above browsers.
Shu tamara mobile ma facebook ke blog post gujarati ma lakheli hoy to nathi joi shakati ? to operamini browser download kari tema www. lakhva ni jagya ma opera:config athva config: type karo etle new settings open thase tema ek option hase "use bitmap fonts for complex scripts" tema yes kari save karo have tame mobile ma gujrati ma fb k blog post joi shaksho..
click here for live demo