Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Thu Apr 23, 2009 9:25 pm Reply with quote

This isnt really 2.3 specific but Im sure Ive seen this on the forums somewhere.Anybody know why some text has like double spacing on your page.I thought I remembered seeing it on here and it was something to do with check_html function?
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri Apr 24, 2009 12:46 am Reply with quote

Hmm? What do you mean exactly?

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
testy1







PostPosted: Fri Apr 24, 2009 1:20 am Reply with quote

for example....

Image

But if you look at the source code it's fine?????

Code:


<tr style="background-color: rgb(122, 117, 111);">
<td>Curl Check Function</td>
<td>This php function checks if curl is enabled on the server, If it is enabled it will open the file you specify.</td>
<td><a href="code-2.html">View</a></td>
</tr>


Edit: Im sure Ive seen this somewhere before, Just cant remember what it was Sad
 
evaders99







PostPosted: Fri Apr 24, 2009 6:44 pm Reply with quote

What's double spacing here? I'm not following
 
bluerace
Regular
Regular



Joined: Apr 04, 2009
Posts: 85
Location: Behind you

PostPosted: Fri Apr 24, 2009 7:36 pm Reply with quote

That's not double spacing.

In your table, the TD has no wraping. If the length of your characters exceed the automtically determined size of your <TD> cell, your browser wraps it out to the next line. To prevent it, go to your php code to define <TD> cell and put nowrap=\"nowrap\"

Good Luck.

_________________
Make stupid PHP-NUKE Smart, that's my favorite chore in Enteripse PHP-Nuke 
View user's profile Send private message Visit poster's website
warren-the-ape
Worker
Worker



Joined: Nov 19, 2007
Posts: 196
Location: Netherlands

PostPosted: Sat Apr 25, 2009 4:35 am Reply with quote

bluerace wrote:
and put nowrap=\"nowrap\"


Aah, blasphemy! Wink

Instead of using deprecated crap use something like; style="white-space: nowrap;" (or with a class in your CSS of course)
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Apr 25, 2009 4:57 am Reply with quote

nowrap is a deprecated tag, therefore I would use CSS.
 
View user's profile Send private message
bluerace







PostPosted: Sat Apr 25, 2009 11:37 am Reply with quote

deprecation does not matter.
the matter is testy1 was figured out what was wrong in his td cell.

Also, in css, white space wrapping definition is, from time to time, not the idea that coders want. For instance, the first <TD> cell may nowar but neighboring <TD> cell should white-space wrapping.
Then, what happens?

simply telling "I prefer white-space is good " does not help his understanding.

The best answer to his question might be:

<td style='white-space: nowrap; ' />

anyways, I would like you not to say and use "new" one is better no matter what should work.
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Sun Apr 26, 2009 8:02 am Reply with quote

Ideally, in my opinion, you layout the table with columns wide enough to hold your content and don't use either Smile

What if you have a div that is 500px wide with a 480px wide table inside? Using any type of nowrap or white-space in the table columns can enlarge the table and create other layout issues....

"deprecation does not matter."
Why show someone the old way of doing things? For instance, Asbestos is great for insulation, but not many will recommend it anymore Smile

Most webmasters do care about having valid code these days, or at least they should...
 
View user's profile Send private message Visit poster's website
jakec







PostPosted: Sun Apr 26, 2009 9:15 am Reply with quote

I would have to agree, it does matter. Using current standards helps to ensure your website looks the same in most browsers, I say most because IE has a habit of mucking things up.

The point is that if you do things right in the first place it will save you time in the future. The RNTeam has spent a lot of time cleaning the Nuke code up and RN is now 99.9% XHTML 1.0 Transitional compliant.

Anyway we are getting OffTopic now.

Testy1, does any of the above work for you?
 
testy1







PostPosted: Sun Apr 26, 2009 3:56 pm Reply with quote

I will get back to this, I broke my hand so im out of action for a couple of weeks.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©