Page 1 of 1
strech (expand) image background height
Posted: Thu Dec 21, 2006 12:50 pm
by ddragas
Hi all
Is it possible with css to strech (expand) image background height depending on table height. Image is gradient, so repeat x or y is not a solution
regards ddragas
Posted: Thu Dec 21, 2006 1:05 pm
by matthijs
I don't think so.
Posted: Thu Dec 21, 2006 1:20 pm
by ddragas
thank you for reply
What would you suggest me as solution of this problem
Posted: Thu Dec 21, 2006 1:22 pm
by John Cartwright
use javascript to determine what resolution the user is using, and use the appropriate background image
Posted: Thu Dec 21, 2006 1:31 pm
by ddragas
My actual problem is that administrator can add more new menus (by using cms) (example: contact, about us ...) , So when admin ads new menu, table height is incrising, and background image sould strech (expand) depending on table height
Posted: Thu Dec 21, 2006 3:15 pm
by matthijs
Is it really necessary that a gradient is used which must stretch with the increasing height of it's containing element?
If you would just use a background color (the full height) and a background image with the gradient in it, I can't imagine it would not look good in a broad range of heights.
Maybe you can show us what you want to do? Sounds to me like it's more of a visual problem then a technical one.