View Full Version : Can we have forced width on images?
ajcates
January 11th, 2009, 10:27 PM
One of the things I love so much about this forum is the strict rules that get applied here. The moderators here do a wonderful job at enforcing these rules.
Something that kinda bothers me is that when people post images that are wider then the thread and they stretched out of the area. I have proposed a fix to this by just adding in a max-width in the css. This will not work with IE6, but it will not affect the browsing, besides the images being to wide.
kirupa
January 12th, 2009, 01:15 AM
How often does that happen? Also, when an image is resized, it looks really bad unless it is resampled as well.
TheCanadian
January 12th, 2009, 02:27 AM
It is kind of a nuisance but in threads where it would actually really matter I find there to be strict rules in place to prevent this anyways (eg. the desktop thread).
Pasquale
January 12th, 2009, 06:05 AM
One of the things I love so much about this forum is the strict rules that get applied here. The moderators here do a wonderful job at enforcing these rules.
Something that kinda bothers me is that when people post images that are wider then the thread and they stretched out of the area. I have proposed a fix to this by just adding in a max-width in the css. This will not work with IE6, but it will not affect the browsing, besides the images being to wide.
Or just hide the overflow :)
ajcates
January 12th, 2009, 01:08 PM
I like how the desktop thread enforces 640 wide images. What would be really cool is if we had some javascript that would resize bigger images to 640 wide and add in a lightbox for the item.
Also another idea is overflow: scroll;
kirupa
January 12th, 2009, 01:17 PM
I like how the desktop thread enforces 640 wide images. What would be really cool is if we had some javascript that would resize bigger images to 640 wide and add in a lightbox for the item.
That is a pretty neat idea. Let me see if that can be done. I know something similar is done for attached images, though having it "just work" for regular images may be tricky.
:)
ajcates
January 14th, 2009, 09:27 PM
If I write up some nifty javascript using yui that does this would you use my code? It seems really simple to me, go and check to see what images are wider then 640px if there wider you apply the Lightbox stuff to them. If they are smaller leave them be.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.