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

Posted by Mark on 12/06/07 11:53

showandbeshown@gmail.com wrote:
> 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".

I'm guessing you want a fluid rounded corner box with transparent corners?

If so, you could do it this way:

http://www.lester1.eclipse.co.uk/1/

It's ugly, but not as ugly as your table version.

This uses a variation of the "sliding doors" technique, which basically
uses a very wide corner image to span the entire width of the box and
"slide out" when the box expands. Transparency causes quite a few issues
with sliding doors, which is usually done using nested divs. That's why
I had to resort to empty divs.

There might be a more elegant way of doing this with transparent corners
but I can't think of one.

 

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

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