> I want the div to extend till the end of image if the resolution is smaller than the image.
Try making the container a float. For example: <div style="float:left; background-color: red; height: 1800px; padding: 5px;"> <br /> <img src="http://upload.wikimedia.org/wikipedia/commons/8/89/Kangaroo_and_joey05. jpg" /> </div> Best regards, Kepler Gelotte Neighbor Webmaster, Inc. 156 Normandy Dr., Piscataway, NJ 08854 <http://www.neighborwebmaster.com> www.neighborwebmaster.com phone/fax: (732) 302-0904 ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *******************************************************************