Weather-Watch.com
March 22, 2010, 03:00:06 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Members: 9,411  Posts: 347,586  Topics: 38,520
Please welcome Gololont, our newest member.

Latest versions: WD - 10.37P  WDL - 6.05  MML - 1.03
 News:
Check out the new FAQs (Frequently Asked Questions) board for a growing list of hints, tips and diagnostic suggestions.
  Advanced Search
   Home   Bug Tracker Photo Gallery Wiki Chat Calendar Search Login Register Help  
Pages: [1]
  Print  |  « previous  |  next »  |  Go Down  
Author Topic: text align center and removing line break? [Resolved]  (Read 111 times)
0 Members and 1 Guest are viewing this topic.
Bashy
Senior Forecaster
*
Online Online

Location: Northants, UK
Station Type: OS WMR 928NX, UV, Solar, Rain duration, Wind heater
Posts: 279
Local Time: Monday 14:00



WWW
« on: February 04, 2010, 02:21:59 PM »

Hi folks

I have tried to remove the line breaks from this code (below) but its not working
this is how it looks at the moment

Monday Night there is a 30 percent chance of snow.

Tuesday there is a 20 percent chance of snow.

Tuesday Night there is a 10 percent chance of snow.


and i would like it to look like this but center aligned as well

Monday Night there is a 30 percent chance of snow.
Tuesday there is a 20 percent chance of snow.
Tuesday Night there is a 10 percent chance of snow.


this is the code where its creating the above

Code:
$numrow = 0;
for ($i=0; $i<count($rsklst); $i++) {
if (strlen($rsklst[$i]) > 2) {
 echo "\n";
 echo '<tr>';
 echo '<td bgcolor="'.$piccell.'" align="center" colspan="1" rowspan="2">';
 echo '<img src="'.$ridir.$rskimg[$i].'.png" width="58" height="58"></td>';
 echo "\n";
 echo '<td bgcolor="'.$ttlcell.'" align="center" width="'.$descrwidth.'"><b><font face="'.$fontface.'" color="'.$tifocolr.'">';
 echo $titles[$i];
 echo "\n";
 echo '</font></b></td></tr>';
 echo "\n";
 echo '<tr><td bgcolor="'.$txtcell.'" width="'.$descrwidth.'"><font face="'.$fontface.'" size="-1" color="'.$tefocolr.'">';
 echo $rsklst[$i];
 echo '</font></td></tr>';
 // echo "\n";
 $numrow++;

Could some one please advise as to what i need to do, i did thin it was just a case
of removing the
Code:
echo "\n";
but evidently not  Embarassed
« Last Edit: February 05, 2010, 12:40:02 PM by Bashy » Logged

Kind regards

Simon

Bashy
Senior Forecaster
*
Online Online

Location: Northants, UK
Station Type: OS WMR 928NX, UV, Solar, Rain duration, Wind heater
Posts: 279
Local Time: Monday 14:00



WWW
« Reply #1 on: February 04, 2010, 05:46:05 PM »

Curly has come to the rescue once again and resolved this for me, thanks again curly....
Logged

Kind regards

Simon

Pages: [1]
  Print  |  « previous  |  next »  |  Go Up  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!