Dynamically Increase the height of the image
I have a code which is something like this
<table width="auto" height="100%" border="0" style="background:url(images/s3_2_fade.jpg) blue no-repeat;">
The image's height is 376px. So once the content goes after 376px, the blue bgcolor alternate takes over. But what i want is, once the content crosses the 376px height, the background image should dynamically stretch and not repeat.
Please its urgent. Help on this
If this is not possible please do tell me how to increase the height of image in <img> using DOM methods.
Again this should increase when the image's original height becomes greater than 376px
There is no way to increase the size of a background image (short of CSS 3)
there is no good option for what your trying to do... ill the methods i have seen will give you problems elsewhere. this says it all:
the best i can think of is to surround the table with a div (position relative). then place an image (position absolute) and have it go behind the table. then with JS match the image height with the table height. You will hit z-index problems with IE but like i said, there are no easy options.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread