Jump to content

Recommended Posts

Posted

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

Posted (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 by TCH-Scott
Posted

Hmm, never came across this problem.

 

A IE solution:

 

><P STYLE="word-wrap:break-word;width:200;left:0">Really,really,longString</p>

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...