You are here: picture width decides table column width « HTML « IT news, forums, messages
picture width decides table column width

Posted by David Basford on 09/28/07 20:22

I have a problem that I can't get my head around
I use php to call this but the end result is

<table width='90%' border='0' cellspacing='8' cellpadding='6' >
<tr>
<td width='27%'><span class='resourceheader2'>Text</span><br><br><img
src='Pic.jpg'></td>
<td width='18%'>stuff</td>
<td>stuff</td>
</tr>
</table>

but the picture seems to set the width - and the other columns get minimised
if I set
<img src='Pic.jpg' width='27%'>
then it ends up with a column of the width of the original pic with a 27%
size picture in it :(

I don't want to fix the column widths if I don't have to - but it might be
my only choice.

Any ideas what is wrong here?

I'm not a regular here - please be lenient if I'm being dumb :)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация