aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-30 14:36:57 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-30 14:36:57 +0000
commit986e4d90986e3d13a789153882f94d774ff59973 (patch)
treeb1466db9bbc71d90a883d44b31495a1636f9ba6e /views/default
parent7009119161d66346f0f2a84a4b67d26273abf0ba (diff)
downloadelgg-986e4d90986e3d13a789153882f94d774ff59973.tar.gz
elgg-986e4d90986e3d13a789153882f94d774ff59973.tar.bz2
Closes #903: Large <pre> and <code> blocks no longer break page shell
git-svn-id: https://code.elgg.org/elgg/trunk@3178 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/css.php8
1 files changed, 8 insertions, 0 deletions
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;