Jump to content

CSS help


bubazoo

Recommended Posts

if you are doing a simple table, like lets say

<table>   <tr>	   <td>row1 </td>   </tr>   <tr>	   <td>row2 </td>   </tr>   <tr>	   <td>row3 </td>   </tr></table>

lets say you want the TD's to be a fixed width, is there a way to do it (using CSS or something) so that, if the text is too long on the right, it will wrap around to the next line?because right now what is happening, is in row3, the table width is continuing on to the right instead of wrapping around.example: My Guestbook notice how comment 6 and 8 extend past the right like that? is there a way to get it to wrap around to the next line, without inserting breaks into the MYSQL table? What I actually want, is a fixed width, so it doesn't matter how long (or short) the comment is.right now I'm using:

<ul style="font-size: small;list-style:none;margin:0;margin-left: 2.5em;padding:0"><li>'.$comment.'</li></ul>

which works good for short comments. I tried using a "margin-right: " but that didn't seem to work.The first comment is how I actually want it to look. LOLthanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...