April 4, 2009

TEXT SIZE minus plus

Professional Code Box For Bloggers

You Might Be Interested In Our Popular Article
  • Improve Link Popularity And Increase Alexa Rank In No Time
  • code boxHello.

    I got few mails from my readers asking me to share How did I designed this blog and share the tips. So I will start with the Professional Looking Code Box. This tutorial assumes that you have at least little bit knowledge of working around with templates.

    This Professional looking Code Box can also be used with WordPress, but here I am taking the example of Blogger.

    Also this Code Box comes with a hover effect, that is when you hover your mouse over this the color changes.

    Here we start:
    01. Login to Blogger and on your Dashboard choose the blog for which you want to Add The Code Box and then click on Layout tab:
    layout

    Once there, click on Edit Html tab:
    edit html

    02. Now in Edit Html tab, before proceeding next, it would be a better idea to backup your template, by clicking on Download Full Template link:
    hide navigation bar

    Now just before the ]]></b:skin> add this Code:
    before this line

    .code {color: #006AB0; border : 1px solid #DADADA;padding : 5px 5px;font-family : Consolas, "Courier New", Courier, mono, serif;font-size : 12px;background-color : #fAfAfA; width : 90%;overflow : auto;margin : 10px 0 10px 10px; border-left : 20px solid #DADADA;max-height : 500px;min-height : 16px;line-height : 16px;}
    .code:hover {background-color : #f3f3f3;}

    code box
    Save Your Template. And it is done.

    03. Now whenever you want to put any code in your template just use the div class code as shown below:

    <div class="code">
    YOUR TEXT OR CODE GOES HERE
    </div>

    code box

    If you find any problem, please feel free to reply here and I will gladly help you with the best possible way.senyum



    Print

    About the Author

    When I was born I was so shocked I didn't speak for a year and half...... My brain has 2 parts, Right and Left, The Right one has nothing left in it and the Left one has nothing right in it...... Who says Nothing is Impossible?? I've been doing nothing for years......

    18 Responses to “Professional Code Box For Bloggers”

    Author comments are in a darker gray color for you to easily identify the posts author in the comments

    1. Gagan says:

      keep up the good work, Bariski !!

    2. Bariski says:

      Thanks Gagan, glad you like it :)

    3. Rapideo says:

      I’m searching for this things for last few days, Thnku ;)

    4. Bariski says:

      My pleasure friend. :)

    5. Ahmad says:

      Nice work done here on your blog very nice. Will visit often, between this is a superb design simple and effective.

      Good going keep up the spirit boy.

      Check: ;;)

    6. Bariski says:

      Thanks mate. I am happy you like this design. See ya around.

      P.S. Your check is successful :P

    7. Andrew says:

      You have two left “{” and 3 right “}” so something is wrong in the above code.

    8. Bariski says:

      Oh! Andrew thanks for pointing out. I have edited the code, it was working fine but there was a bit extra useless code, which is removed now. Thanks.

      P.S.; You have ripped my codebox on your blog, that is not appreciated, please remove it or else I have to file a complain against you to google adsense as this template is protected by copyright laws. Hope you understand.

    9. Andrew says:

      I modified it. I was at work and had to go before i could do it. Thanks for the great CSS!

    10. www.topfinest.com says:

      Hi this is great article.

      http://www.topfinest.com

    11. Bariski says:

      @Andrew thanks for understanding.
      http://www.topfinest.com thanks for appreciation.

    12. pramod says:

      great work Bariski !
      dis is very useful…

    13. pramod says:

      can u teach how to place a sharing link menu like the one at the top of this post….plz

    14. Bariski says:

      @pramod thanks for the appreciation. And the sexy bookmarks can be found here:
      Add Sexy Bookmarks to Blogger

      Hope this helps.

    15. EXPERT says:

      legal

    16. anas_AF says:

      thanks for the tips

    17. Pro says:

      Great Info dude!! Its great to see you who share all the info you know about blogging!!

    18. Bariski says:

      Thanks for the appreciation buddies, I'm glad you folks like it.

    Leave a Reply