DarkHavoc Posted January 14, 2004 Posted January 14, 2004 Hey, Im adding a front page news feature to my webpage but i want to specify the tables.. the code doesnt wordwrap or whatever its called and spreading all the words out into one line if you dont hit the space bar Is there a code so i can lock the size of the table and cell so it doesnt strech out if people.. or something just to fix this problem i have also if u noticed.. the date is messed up... 13/13/04? this is a php time echo thanks Dennis example of the screw up http://www.tol-clan.com/index.php Quote
SEO Posted January 14, 2004 Posted January 14, 2004 (edited) 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. 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. Hope this helps. ><table width="100" height="100" border="0" cellpadding="0" cellspacing="0"> <tr> <td>Some Text</td> </tr> </table> <br> <br> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="200">Some Other Text</td> <td width="400">Some More Text</td> </tr> </table> Edited January 14, 2004 by TCH-Scott Quote
DarkHavoc Posted January 14, 2004 Author Posted January 14, 2004 http://www.tol-clan.com/news/example.php heres the page thx Quote
DarkHavoc Posted January 14, 2004 Author Posted January 14, 2004 ok i figured out that spacing now whys the date wrong? Quote
SEO Posted January 14, 2004 Posted January 14, 2004 Hmm, never came across this problem. A IE solution: ><P STYLE="word-wrap:break-word;width:200;left:0">Really,really,longString</p> Quote
SEO Posted January 14, 2004 Posted January 14, 2004 Sorry, time for bed... not sure what you have but this works perfectly: ><?php echo date("l, F d, Y h:i" ,time());?> Good night. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.