PDA

View Full Version : need html help


bassman
11-12-2007, 03:20 PM
Aloha all. I need a little help with a basic HTML problem. I know it is simple but can not seem to find my answer :rolleyes:
What I have is a simple page with 3 table columns. I want to define the width of the first 2 and let the third assume what is left. Problem is, the third column has an image and it is setting that columns width.
Is there a way to force the image in the third column to resize accordingly (different monitors/resolutions) with basic HTML?
If anyone is willing to help, I will send a link in PM to avoid promoting the site at this time.

Thanks

Ajmukon
11-12-2007, 04:23 PM
try:
http://www.ahfb2000.com/webmaster_help_desk/index.php?

this website helped me a lot with lots of html problems.
just be careful, the head of that website is not an understanding guy.
But:
They will be able to help you.

Mods: i am not promoting this website (i do not even like it anymore), but i think Bassman will get more efficient help there (they are not PC Help gurus, but code gurus and programmers). If you think that this is advertising, just remove the link. ;)

bassman
11-12-2007, 05:29 PM
Thanx Ajmukon. You have made your place here. I doubt anyone would accuse you of spamming ;) I will post my Q there and see what I get.

Paul Komski
11-12-2007, 09:14 PM
Try using percentages. In the example below the table is 100% of the page. The first two cells are 40% of the table and the picture is 100% of the height and width of the cell that contains it. The third cell is 20% maximum width (unless there is an element such as a large defined image in it) since the other 80% is occupied by the first two cells.

<table style="text-align: left; width: 100%;" border="1">
<tr>
<td style="width: 40%;">CELL 1</td>
<td style="width: 40%;">CELL 2</td>
<td><img style="width: 100%; height: 100%;" alt="My Picture" src="mypicture.jpg"></td>
</tr>
</table>

bassman
11-15-2007, 10:43 AM
Hi [b]Paul]b/]. Thanks for the response. Somehow I missed that you had responded (never got an e-mail telling me). Anyway, I got things working the way I wanted and all seems to be fine at the moment. I was using percentages and not getting the effect I wanted on smaller screens. Tried set amounts and was getting the same. I finally figured out I needed another set of {table}{/table} tags and got exactly what I was after.
Take a look if you like, I put a link in my sig ;)

Paul Komski
11-15-2007, 12:59 PM
If you've got it working the way you want that's just fine but I'm not sure just what you mean - unless it is nested tables after you navigate away from the home page.

On the home page I note that there is an absent closing </td> tag in the middle cell of the middle table on the home page after ... and made with love!!</font> - but that is bye the bye. However I can't see any sizes defined in percentages since any sizes that have been defined have been done so in absolute amounts - that is apart from the rightmost empty cell in the first table - itself being 100% the width of the page.