inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 1, 2017 20:14:15 GMT -8
This could be very well be something related to a theme you have installed since that behaviour is controlled by CSS and could very well be old school vendor prefixed in your specific theme, a forum link would quickly reveal that. Basically with no break points in the content ( a space, hyphen, etc.) the normal behavior is to not break in the middle of a word so it will go on and on. On this forum, in the theme I have selected, the word-wrap: break-word; rule ensures that the long line of unbroken characters you posted eventually gets broken in the middle of a word if necessary. Are you seeing that long unbroken line on this forum as well? that was Chrome and this is Firefox
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 2, 2017 6:10:51 GMT -8
I opened it with Chrome and got the same unbroken line which was easily traced to this rule .posts .post .message code { display: block; border: 1px solid #d7d7d7; padding: 5px; margin-left: 16px; margin-right: 16px; background: #efefef; color: #000000; font:; white-space: pre; }
Changing that from "pre" to "pre-wrap" immediately corrected the problem for me in Chrome. I'd say this was a rule added/modified specifically for that theme so look for it on the style sheet tab (CTRL+F brings up search)
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 3, 2017 4:10:10 GMT -8
Since you are not a staff member of that forum and have no access to the admin panel then you can simply insert the necessary change as an inline style on your code tag, example:
[code style="white-space:pre-wrap"]insertcodehereinsertcodehereinsertcodehereinsertcodehereinsertcodehereinsertcodehereinsertcodehereinsertcodehere[/code]
and that will override the rule on that forum for that particular CSS property. The drawback to that approach is you have to add it every single time you insert a code element into a post but if you plead your case to the staff of that forum and they change it for you then it is a one-time change.
I have no idea what a "command style sheet" is, can you explain?
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Apr 3, 2017 7:13:01 GMT -8
CSS is cascading style sheet, not command. and no you cannot; as Chris stated you must use inline styling to override the css put in place by the forum's administrator.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 3, 2017 21:54:39 GMT -8
It is a question of style not content so deleting all content then putting the content back would have no effect.
This forum (more accurately a theme on this forum) has the style change I am advising you to make on that forum either through the admin panel (ask the staff to do it) or adding it inline as demonstrated above.
|
|