View Full Version : auto image height

05-21-2008, 07:06 PM
I have a table with the outside borders a stretched 1px*1px image. The content of the table is filled through an AJAX call which returns table rows and so the height of the table varies. Can the height of the side images be automatic in some way? If not through static HTML, through DHTML?


05-21-2008, 08:45 PM
Oh my… you’re using AJAX calls and at the same time you’re still applying borders through plain images? Have you ever heard of background images? They repeat themselves automatically in each direction unless you specify differently. For example element {background: url(image.png) top left repeat-y;} will make the image repeat vertically. Is all done in CSS. No „DHTML“ or such complicated stuff.

05-21-2008, 09:00 PM
Thanks God. You're the best.

05-21-2008, 10:05 PM
I know, I know. But you can call me Stephan. ;)