Forum Moderators: not2easy
div.forcersswidth {
width: 550px;
overflow: hidden;
}
Due to the "hidden" attribute, the right parts of the images (larger than 550px) are chopped off. Is there anything I can put in this CSS to make it resize rather than chop off the overflow?
Thank you for your response! The CSS code you gave me works great to resize images larger than my content width (550px). Unfortunatly, images that are small in the feed are now resized larger. Is there a way I can only have it resize images that are larger than 550 px and do nothing to the images that are smaller?
Marshall
You can also combine overflow:hidden with max-width, So that you could crop 50 pixels as well as shrink it, so that the shrink is less pronounced.This can be done by having a max-width of 600px, and overflow:hidden of 600px.
From my experience, the shrinking seems to keep the proportions, So if it was 800x100, And max width was 600, the height will decrease automatically too, something which is generally desired, but may cause problems if you specifically allocated height space.
[edited by: Xapti at 6:38 pm (utc) on Sep. 22, 2007]