Author |
Message |
testy1
Involved


Joined: Apr 06, 2008
Posts: 484
|
Posted:
Thu Apr 23, 2009 9:25 pm |
|
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? |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Fri Apr 24, 2009 12:46 am |
|
Hmm? What do you mean exactly? |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
testy1

|
Posted:
Fri Apr 24, 2009 1:20 am |
|
for example....
Only registered users can see links on this board! Get registered or login!
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  |
|
|
|
 |
evaders99

|
Posted:
Fri Apr 24, 2009 6:44 pm |
|
What's double spacing here? I'm not following |
|
|
|
 |
bluerace
Regular


Joined: Apr 04, 2009
Posts: 85
Location: Behind you
|
Posted:
Fri Apr 24, 2009 7:36 pm |
|
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 Only registered users can see links on this board! Get registered or login! |
|
|
 |
warren-the-ape
Worker


Joined: Nov 19, 2007
Posts: 196
Location: Netherlands
|
Posted:
Sat Apr 25, 2009 4:35 am |
|
bluerace wrote: | and put nowrap=\"nowrap\" |
Aah, blasphemy!
Instead of using deprecated crap use something like; style="white-space: nowrap;" (or with a class in your CSS of course) |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Sat Apr 25, 2009 4:57 am |
|
nowrap is a deprecated tag, therefore I would use CSS. |
|
|
|
 |
bluerace

|
Posted:
Sat Apr 25, 2009 11:37 am |
|
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
|
Posted:
Sun Apr 26, 2009 8:02 am |
|
Ideally, in my opinion, you layout the table with columns wide enough to hold your content and don't use either
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
Most webmasters do care about having valid code these days, or at least they should... |
|
|
|
 |
jakec

|
Posted:
Sun Apr 26, 2009 9:15 am |
|
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 now.
Testy1, does any of the above work for you? |
|
|
|
 |
testy1

|
Posted:
Sun Apr 26, 2009 3:56 pm |
|
I will get back to this, I broke my hand so im out of action for a couple of weeks. |
|
|
|
 |
|