You are here: Re: Image in a table in XHTML. « HTML « IT news, forums, messages
Re: Image in a table in XHTML.

Posted by rf on 12/06/07 02:41

<showandbeshown@gmail.com> wrote in message
news:588b2edb-3ad5-4968-961c-ed5cb60db3b5@w40g2000hsb.googlegroups.com...
> On Dec 5, 9:20 pm, "rf" <r...@invalid.com> wrote:
>> <showandbesh...@gmail.com> wrote in message
>>
>> news:80dec378-5cf8-4b3b-87ab-2a5adaa88108@j44g2000hsj.googlegroups.com...
>>
>> >I found something that looks like what i need:
>> > <img src="img/l.jpg" style="width: 100%; height: 100%" alt="" /></td>
>> > However, it does not work. :) Why? I do explicitly say that the image
>> > should take the 100% of the height and it does not take. You can see
>> > how it looks like here:
>> >http://www.showandbeshown.com/headtail.php
>>
>> You should be using l.jpg as a background for that cell. It wall
>> automatically repeat and fill up the cell.
>>
>> --
>> Richard.
>
> If I use <td background="image.jpg">, it helps only but only
> partially. Because, it looks like I want, but the document becomes
> "not valid xhtml document" since "there is not background attribute
> for the <td> element".

Then specify it using CSS.

XHTML is not viable on the web anyway. IE simply does not understand it and
you are serving it up as as text/html so browsers are error correcting it
back to HTML anyway.

HTML 4.01 strict is the way to go.

--
Richard.

 

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

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