Wednesday, April 23, 2008

CSS Code for the blog

CODE {
color: black;
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://yongzhen.zhuang.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}

We can use element <code></code>. The appearance is like this

<code>
write my code here...........
</code>

0 comments: