Saturday, January 3, 2009

how to give special formatting to code tag in blogger blogs

There are times when you want to use any codings [ html ,css or any other major language ] – in those cases it is best to give them special formatting like changing their background color . Let me show you how you can do special editing to the <code> tag :

1.goto blogger->layout->edit HTML

2.paste the below code anywhere in between the <style> and </style> tag :

code { background:#CCFFFF; border:thin gray dashed; display:block; }

NOTE:YOUR CODE WILL LOOK LIKE ABOVE AFTER YOU ADD THE ABOVE CODE TO YOUR BLOG TEMPLATE .SO GO ON :)

That is it ! The next time you want to add any special programming code in your blog post use as follows :

“<code>printf(“I Love Blogging”);</code>”

0 comments:

 
Copyright 2009 Make Money Blogging Online. Powered by Blogger Blogger Templates designed by Deluxe Templates