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:

http://i46.tinypic.com/prqdl.jpg

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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -