任务单 #9514

CSS to make preformatted text wrap
开放日期: 2006-12-03 22:30 最后更新: 2007-01-11 21:39

报告人:
属主:
状态:
关闭
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:

Details



Themes "cube_default"
style.css


Replace the following code:

/************************************/

div.xoopsCode pre {
border: solid 1px #c0c0c0;
margin:0;
overflow:auto;
padding:0 1em;
min-height:4em;
height:auto;
}
/* for IExplorer */
* html div.xoopsCode pre {
height:4em;
height:auto; /* IE 6.x */
width:40em;
}

/************************************/


By the following one:

/************************************/

/* Browser specific (not valid) styles to make
preformatted text wrap */
div.xoopsCode pre {
border: solid 1px #FF0000; /* Design Optional Border */
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* 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+ */
}

/************************************/


If it is not W3C validated at least it will not break
the page layout on the most common browsers.



任务单历史 (3/4 Histories)

2006-12-03 22:31 Updated by: gigamaster
  • 处理结果 Update from to Works For Me
2007-01-10 11:06 Updated by: minahito
  • 属主 Update from (无) to tom_g3x
  • (类别 change on Tracker)
  • 处理结果 Update from Works For Me to Accepted
评论
Logged In: YES
user_id=8353

Thank you for your patches. Tom_G3X will consider these
suggestions. Please, Tom_G3X! ;-)

[JA]
パッチありがとうございます。Tom_G3Xさんがこの提案をどうする
かやってくださると思います。Tomさんよろしくおねがいします~
2007-01-11 21:39 Updated by: tom_g3x
  • 处理结果 Update from Accepted to Fixed
  • 状态 Update from 开启 to 关闭
评论
Logged In: YES
user_id=6745

Marged code. thanks gigamaster!
2007-01-11 21:39 Updated by: tom_g3x
  • Ticket Close date is changed to 2007-01-11 21:39

Attachment File List

No attachments

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名