strech (expand) image background height

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

strech (expand) image background height

Post 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
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

I don't think so.
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

thank you for reply

What would you suggest me as solution of this problem
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

use javascript to determine what resolution the user is using, and use the appropriate background image
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post 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
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post 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.
Post Reply