SaMz Posted June 11, 2009 Posted June 11, 2009 How do i make it so the page doesnt expand when you add an image which its pixels are larger than the page width? i tried many methods looked on the net but nothing seems to work.. is there anything available and style? Quote
AlabamaHit Posted June 12, 2009 Posted June 12, 2009 Re: Image pixel I'm sure you tried this, but just in case... Quote
wolfe Posted June 12, 2009 Posted June 12, 2009 Re: Image pixel Could try it with the maxwidth,maxheight properties. Quote
SaMz Posted June 12, 2009 Author Posted June 12, 2009 Re: Image pixel Could try it with the maxwidth,maxheight properties. What do you mean? using DIV? Quote
BlueDevil23 Posted June 12, 2009 Posted June 12, 2009 Re: Image pixel  max-height and max-width are CSS selectors, not attributes of the img tag. Quote
Haunted Dawg Posted June 12, 2009 Posted June 12, 2009 Re: Image pixel Hmm, then i must be dreaming xD Quote
SaMz Posted June 12, 2009 Author Posted June 12, 2009 Re: Image pixel Omg i just found out i was a noob!! why not do it the easy way.. On many games the images used for signatures and forums overflow the page width.. many people dont know how to stop this... Could you believe that this did not come to your mind.. well i forgot about this.. Just add this to css: img { max-width: xxxpx; max-height: xxxpx; } Change 'xxx' to the fixed pixel. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.