The result will look like this:
As usual,Login To Blogger Go To > Design > Edit HTML.
and mark the tick box "Expand Widget Templates"
Then, find (CTRL+F) this code in the template.
]]></b:skin>
And immediately before it, paste this code:.rtcv {
margin : 15px 35px 15px 15px;
padding : 20px 10px 10px 35px;
background : #EEEEEE url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV015eMhlVR1VyDuGF5eSvSSNAQLkRZJQXKAYTnVpWYrq2J00xCeCNAE4Urrowt_vZ93tj8wzek7THflBythafof1Atj8zJK-KIgZGHh47DuIRyb8jXIujiKFjARHob3bsZtF9StGB4mk/s1600/royal+tutor+code.gif) repeat-y top left;
border-top : 1px solid #AAAAAA;
border-right : 1px solid #AAAAAA;
border-bottom : 1px solid #AAAAAA;
border-left : 1px solid #AAAAAA;
}
Now save you template to make the changes applymargin : 15px 35px 15px 15px;
padding : 20px 10px 10px 35px;
background : #EEEEEE url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV015eMhlVR1VyDuGF5eSvSSNAQLkRZJQXKAYTnVpWYrq2J00xCeCNAE4Urrowt_vZ93tj8wzek7THflBythafof1Atj8zJK-KIgZGHh47DuIRyb8jXIujiKFjARHob3bsZtF9StGB4mk/s1600/royal+tutor+code.gif) repeat-y top left;
border-top : 1px solid #AAAAAA;
border-right : 1px solid #AAAAAA;
border-bottom : 1px solid #AAAAAA;
border-left : 1px solid #AAAAAA;
}
From now onwards whenever you want to insert some codes in your posts always put it between <div class=”rtcv”> and </div> like these as Shown below:
<div class="rtcv">
HTML Code Here
</div>
That’s all.HTML Code Here
</div>
Now you can show your code on nice background and give a professional look to your blog .
4 comments so far:
great article mate , easier than using syntax highlighters and clean
thanks for your sharing!
Great Job Great Job love u……….
im using HTML ENTITIES ENCODER from way2blogging to show the html code in my blog post..
btw,its great to know other way from you site.
thanks for your sharing
Post a Comment