image - auto resize with css -
i have following problem:
i have image goes through slides, need resized size of window , monitor, thought i'd use:
min-height: 100%; min-width: 1024px; width: 100%; height: auto; but not solve problem in above image shows current problem, have header div , footer div superimposed image , image getting underneath 2 divs eating pieces of it, how fix this?
an image demo:

img { min-height: 100%; min-width: 1024px; width: 100%; height: auto; position:relative; z-index:1000; } that make sure image appears above everything
edit:
<div id="header"></div> <div id="image"> <img src="image_path"> </div> <div id="footer"></div> if source, css should this.
#header,#footer{ height:150px; // set number width:100%; } #image{ /* code using */ min-height: 100%; min-width: 1024px; width: 100%; height: auto; }
Comments
Post a Comment