javascript - How to resize an image that has a gradient according to the current page height? -


i using image background site. has black/white gradient, , 1px wide.

the css:

background-image:url('../image/gradient.png'); 

which makes repeat itself. height of image 2000px.

is possible change height of image dynamically, fits page sizes: if height of page less 2000px, height of image should smaller, if height of page bigger, image should bigger.

thanks in advance

i have tried various in-browser gradient techniques, , dont seem work same on browsers.

maybe not getting right context of question, can somethin like

#someimg.src { width: 100%; position: absolute; top: 0; left: 0; } 

resize page see action: http://css-tricks.com/examples/imagetobackgroundimage/


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -