Devnet Width Issue in Firefox

We know you have an opinion on how things should be run around here. These are suggestions for the forums, and the website.This forum is not a place to ask for suggestions to your own coding (or otherwise) problems.

Moderator: General Moderators

Post Reply
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Devnet Width Issue in Firefox

Post by Benjamin »

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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Perhaps wordwrap() could be added to the output of code, php and qoute.

Code: Select all

<?php
$text = "A very long woooooooooooord.";
$newtext = wordwrap($text, 8, "\n", 1);

echo "$newtext\n";
?>
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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

php tags do not have the issue.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

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
Yeah your right, I was just brainstorming. I think that using the css overflow attribute would be the best solution.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

feyd wrote:php tags do not have the issue.
So perhaps map the code tags to php tags?

Are there many posts that post code that the php tags would break?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I don't think there's a point in making changes to a construct which we are about to change entirely soon after.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

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.
Are there planned changes for the rendering of code and qoute tags?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Yeah, they're using a new syntax highlighter
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

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.
Which construct? What changes?

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I was referring to the upcoming changes for the function linking in php tags. We're still working out the details, so I don't want to go modifying code just yet..
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Can't you just change the style of the

Code: Select all

div to horizontal scroll?
Post Reply