Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Background image to be resized
Message
 
To
04/03/2010 04:11:56
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
01452421
Message ID:
01452623
Views:
31
Quote:
It would certainly take a specially designed image for it to look good stretched - but if you already have such an image you could approach this by not using the "true" background properties. Instead you could use the z-axis to stack up divs, with your "pseudo-background" on the bottom.

You'd need to use javascript to get availableHeight and availableWidth first, and then write those dimensions into the image in your bottom div. Also you'd probably want some code to take the measurements again and re-draw everything if the window gets resized.
----
http://www.webmasterworld.com/forum83/303.htm

What about the image AND the sale on overlapping DIVs?

>From my research on the net, it doesn't seem possible to resize a background image of a cell based on a custom width and height. This is usually needed when we display a list of store items where some of them are on sale. So, usually, we would use the store item image as the background and add another IMG SRC tag in the cell for the "on sale" image. This works well whenever the background image already has to proper sizing required. But, when this is not the case, we are facing a difficult situation. As, there is no way to use the width and height tags inside a TD Background syntax.
>
>I tried to use a DIV approach to overlap that on top of each other. But, we cannot have a DIV on top of an image. This is always front most.
>
>Any other idea would be welcome.
Ricardo A. Parodi
eSolar, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform