Devnet Width Issue in Firefox
Moderator: General Moderators
Devnet Width Issue in Firefox
I am using a Firefox browser on Linux Fedora and some of the posts on this web site cause the page to be so wide I have to use the horizontal scrollbar to read the entire post. Does anyone else have this problem. I haven't nailed down what is causing it, I am just wondering if anyone else has this problem?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
It's an issue with all browsers, but the source is someone posting in a
Code: Select all
tag that doesn't wrap due to no spaces to wrap with.Perhaps wordwrap() could be added to the output of code, php and qoute.
I understand the width of the page is variable so maybe it could just add a space every X'th character so that the browser can wrap it as required.
Or, possibly an even better solution, put the code, php and qoute output into a div with a fixed width of say 90% and set the overflow to scroll.
Code: Select all
<?php
$text = "A very long woooooooooooord.";
$newtext = wordwrap($text, 8, "\n", 1);
echo "$newtext\n";
?>Or, possibly an even better solution, put the code, php and qoute output into a div with a fixed width of say 90% and set the overflow to scroll.
Yeah your right, I was just brainstorming. I think that using the css overflow attribute would be the best solution.jshpro2 wrote:That's not a good idea, it could effect how the script runs if whitespace is added in the wrong place, for instance if someone had binary data hard coded in a string a space would corrupt it
Which construct? What changes?feyd wrote:I don't think there's a point in making changes to a construct which we are about to change entirely soon after.
This loops back nicely to the need for at least a locked message with coming changes that I mentioned in another suggestion thread. We have no idea what you are talking about.
Can't you just change the style of the
Code: Select all
div to horizontal scroll?