problem with <pre> tag not aligning text
Posted: Wed Apr 13, 2005 1:06 pm
hey all
I'm currently playing around with the idea of making my own box where source code is shown. I am using it for smaller code snippets.
The page is:
http://www.thallish.dk/php_mysql_connect.php
As you can see the text in the code box is not aligning left? And that annoys me big time!
my CSS code for that particular class is
Can anybody help me please? And if this is not the best way to do don't be afraid to say so
/thallish
I'm currently playing around with the idea of making my own box where source code is shown. I am using it for smaller code snippets.
The page is:
http://www.thallish.dk/php_mysql_connect.php
As you can see the text in the code box is not aligning left? And that annoys me big time!
my CSS code for that particular class is
Code: Select all
pre.code{
white-space: pre;
color: #000000;
background-color: #999999;
padding-right: 2px;
padding-left: 2px;
padding-bottom: 2px;
padding-top: 2px;
font: 8pt Courier, monospace;
width: 100%;
overflow: scroll;
overflow: auto;
}/thallish