Click to See Complete Forum and Search --> : Lock an HTML <td> Tag


Brachole
06-21-2008, 11:30 AM
I wrote this application in ASP for my client so he can write articles, using a Rich Text Editor. I allow him to upload images to the server and insert them into his article. Problem is that the client doesn't know how to control the width of his images.

For example, the Body of the Article's page has a table with a <td> width of 690 pixels. However, the client could be inserting an image that's 900 pixels wide, which screws up the layout of the page.

Any way I can lock that cell so even if the image is wider than what the cell's width is set to, it won't expand?

Here's an example of my table:

<table width="1000">
<tr>
<td width="189">Verticle Navigation goes here...</td>
<td width="690">Article goes here...</td>
</tr>
</table>

Fang
06-21-2008, 11:42 AM
Why not resize the images on the server?

Declan1991
06-21-2008, 11:53 AM
It would be better to find the width and height of the image using ASP and resize it if too big. I can do that in PHP but not ASP so maybe you should ask in that forum.

Would you consider switching to a table-less layout too? It can be quite an advantage.