From 986e4d90986e3d13a789153882f94d774ff59973 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 30 Mar 2009 14:36:57 +0000 Subject: Closes #903: Large
 and  blocks no longer break page shell

git-svn-id: https://code.elgg.org/elgg/trunk@3178 36083f99-b078-4883-b0ff-0f9b5a30f544
---
 views/default/css.php | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'views')

diff --git a/views/default/css.php b/views/default/css.php
index f30341b62..5e206cf52 100644
--- a/views/default/css.php
+++ b/views/default/css.php
@@ -152,6 +152,14 @@ pre, code {
 	font-size:12px;
 	background:#EBF5FF;
 	overflow:auto;
+	
+	overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
+	white-space: pre-wrap; /* css-3 */
+	white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
+	white-space: -pre-wrap; /* Opera 4-6 */
+	white-space: -o-pre-wrap; /* Opera 7 */
+	word-wrap: break-word; /* Internet Explorer 5.5+ */
+	
 }
 code {
 	padding:2px 3px;
-- 
cgit v1.2.3