/ Published in: CSS
displays sourcecode in a nice notebox on blog pages. uses with a class.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.code { border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(161, 165, 169); border-right-color: rgb(161, 165, 169); border-bottom-color: rgb(161, 165, 169); border-left-color: rgb(161, 165, 169); background-color: rgb(247, 247, 247); background-image: none; background-repeat: repeat; background-attachment: scroll; -x-background-x-position: 0%; -x-background-y-position: 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; margin-top: 20px; margin-right-value: 0pt; margin-bottom: 20px; margin-left-value: 0pt; margin-left-ltr-source: physical; margin-left-rtl-source: physical; margin-right-ltr-source: physical; margin-right-rtl-source: physical; padding-top: 8px; padding-right-value: 8px; padding-bottom: 8px; padding-left-value: 8px; padding-left-ltr-source: physical; padding-left-rtl-source: physical; padding-right-ltr-source: physical; padding-right-rtl-source: physical; text-align: left; font: 1.1em 'monaco,'Courier New',courier,monospace; }
URL: http://roobasoft.com/blog/2005/12/02/code-on-the-web/