Table Code Help

liunx

Guest
Hey,<br /><br />Im adding a front page news feature to my webpage<br /><br />but i want to specify the tables.. the code doesnt wordwrap or whatever its called<br /><br />and spreading all the words out into one line if you dont hit the space bar<br /><br /><br />Is there a code so i can lock the size of the table and cell so it doesnt strech out<br />if people.. or something just to fix this problem i have<br /><br />also if u noticed.. the date is messed up... 13/13/04? this is a php time echo<br /><br />thanks<br />Dennis<br /><br />example of the screw up<br /><a href="http://www.tol-clan.com/index.php" target="_blank">http://www.tol-clan.com/index.php</a><!--content-->
Your links is not working so I could not look directly at what you are doing. As far as the HTML goes, it is easy to set width of either a table or a cell within a table.<br /><br /><br />Two tables are shown below, the first is a single cell and the width is simply defined by the table width. The second has two cells (columns) and their width is defined within their individual <td> tags.<br /><br />Hope this helps. <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><table width="100" height="100" border="0" cellpadding="0" cellspacing="0"><br /> ?#60;tr><br /> ??#60;td>Some Text</td><br /> ?#60;/tr><br /></table><br /><br><br /><br><br /><table width="600" border="0" cellspacing="0" cellpadding="0"><br /> ?#60;tr><br /> ??#60;td width="200">Some Other Text</td><br /> ??#60;td width="400">Some More Text</td><br /> ?#60;/tr><br /></table><!--c2--></div><!--ec2--><!--content-->
<a href="http://www.tol-clan.com/news/example.php" target="_blank">http://www.tol-clan.com/news/example.php</a><br /><br />heres the page<br />thx<!--content-->
ok i figured out that spacing<br /><br />now whys the date wrong?<!--content-->
Hmm, never came across this problem.<br /><br />A IE solution:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><P STYLE="word-wrap:break-word;width:200;left:0">Really,really,longString</p><!--c2--></div><!--ec2--><!--content-->
Show us your PHP (please).<!--content-->
Sorry, time for bed... not sure what you have but this works perfectly:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?php echo date("l, F d, Y h:i" ,time());?><!--c2--></div><!--ec2--><br /><br />Good night.<!--content-->
thanks for the help<!--content-->
 
Back
Top