01-24-2008, 04:38 AM
|
#12 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
|
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
|
|
|
|