Previous Message
Next Message

a problem with the impression of the tag pre

Sent by Matthieu Petiot on 23 June 2005 08:08


hello!
I'm French, then excuse me for my bad English accent :-).
i use a tag pre to post code on my website.
here styles used for this tag:

#content pre {
background-color:#E2EDF8;
border:1px solid #7DACE7;
border-left-width:8px;
margin:10px;
margin-left:20px;
margin-right:20px;
padding:10px;
padding-left:44px;
background-image:url('/gabarit/defaut/konsole.png');
background-repeat:no-repeat;
background-position:10px 10px;
overflow:auto;
}

but when I print the page, part of the contents of the tag pre is truncated 
because lines are very long.
I tried well to use the property white-space:normal but the result is ugly. 
there is no more line feed.
does somebody have a solution?
you can look at the result on this page for example: 
http://giminik.developpez.com/articles/php/style-switcher/

Matthieu
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: