viperfx07 is here to blog about hacking, cracking, website, application, android, and many more.

Friday, August 6, 2010

Modify the code tag

3:34 PM Posted by viperfx07 No comments
Basically, I've been using <code> tag for links, descriptions, etc. <pre> tag (just added recently) is used for the programming code :D

For this blog, I use this css code below for my <code> tag:
code{
color: black;
padding: 4px 10px 0px 40px;
line-height:20px;
/*--Background of lined paper--*/
background:url(http://2.bp.blogspot.com/_4HKUHirY_2U/SwvYtNp8iUI/AAAAAAAAAUM/0UnYmLgLebk/pre_code_bg.gif) repeat-y left top;
white-space: no-wrap;
display: block; /* -- this make the background wraps the text correctly */
}

0 comments:

Post a Comment