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

Posted by Harlan Messinger on 09/28/07 20:49

David Basford wrote:
> 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 :(

"Note that lengths expressed as percentages are based on the horizontal
or vertical space currently available, not on the natural size of the
image, object, or applet."
http://www.w3.org/TR/html4/struct/objects.html#adef-width-IMG

 

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

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