I am working on a project I created myself (www.deepsecurity.org) which people will be able to paste stuff and much more in the future.
I have a problem with this project though, if you check the site and check the "Th Bible" paste someone posted, you can clearly see that the post goes out of the black screen and you cannot read the rest anymore.
How can I fix this? Been trying for hours.
I am using Flask + SQLAlchemy + WTForms and Pygments.
Take a look at the css (I write very back css, sorry about that)
style.css
@import url('topbar_style.css'); @import url('errors.css'); @import url('showcodes.css'); @import url('addcode.css'); @import url('highlight.css'); @import url('about.css'); @import url('login.css'); html { font-family: 'Lucida Console', Monaco, monospace; font-size: 13px; color: #FFFFFF; background: #F2F2F2 url('images/bg_body.png') repeat-x 0 0; display: inline-block } .page { overflow: hidden; margin: 3em auto; width: 950px; display: inline-block border: 5px solid #ccc; padding: 0.8em; border: 1px solid #383838; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; background: #202020; } div.codes h1 { font-family: 'Lucida Console', Monaco, monospace; margin: 0px; color: #F2F2F2; border-bottom: 2px solid #eee; } h2 { font-size: 15px; } div.about-text { white-space: pre; } div.codes { white-space: pre; } showcodes.css
.codes { display: inline; list-style: none; margin: 0; padding: 0; } .codes li { margin: 0.2em 1em; } 
pretags, and that means that line breaks and spaces are preserved. Do you have to use<pre>?