_tech_dude_ Posted September 26, 2006 Share Posted September 26, 2006 was just wondering - is there any way to fix the dimensions of a div container so they do not move - even if an image with a larger width or height is placed in it? Link to comment Share on other sites More sharing options...
real_illusions Posted September 26, 2006 Share Posted September 26, 2006 yeahyou set the height and width and use the "overflow" style in the cssdiv.fixeddiv{width:600px;height:400px;overflow: auto; /* also change to hidden, scroll, inherit, visible */}and the html<div class="fixeddiv"><img src="somehugeimage.jpg" alt="Stupidly Huge image!!" height="500" width="8000" /></div> Link to comment Share on other sites More sharing options...
Cronthenoob Posted September 26, 2006 Share Posted September 26, 2006 Here is a pretty good reference for what _I_think you are trying to accomplish.http://cssplay.co.uk/boxes/outside.htmledit: Well, maybe not, lol. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now