View Single Post
Old 01-24-2008, 04:38 AM   #12 (permalink)
sarmenhb
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

if your making a tutorial and want to display a peice of code in like a scroll bar you can just use good 'ol html. something like this

Code:
<style type="text/css">

div {
	height: 30em;
	width: 25em;
	padding: 1em 1em 0 1em;
	overflow: auto;
	background: #fff;
	border: 1px solid #999;
    }

</style>


<body>

<div>

<pre>
the text in here will be displayed in a box with scroll bars
</pre>

</div>

</body>
the <pre> tag is what allows you to display code to the page.
__________________
no signature set
sarmenhb is offline  
Reply With Quote