PDA

View Full Version : Solved an age old problem


walrus
2009-06-03, 10:19 PM
Or at least one I've been bitching about since the dawn of RSS feeds and that is sponsors who love to use images to big for the post area of my 3 column blog.

PapaGMP can attest that this has been a pet peeve of mine for awhile since I know I've let him know how displeased I was a couple of times.

The fix ended up being a simple little CSS addition.

img {
border: 0;
max-width: 450px;
}
Notice max width sets the maximum horizontal size of the image. Images smaller are unaffected. Those larger are scaled proportionately

Oh and yes, I still do use feeds, just not as blog posts.

Cleo
2009-06-04, 12:04 AM
Hopefully your IE surfers will have version 7 or above.

walrus
2009-06-04, 12:15 AM
Hopefully your IE surfers will have version 7 or above.

If not, then the pictures just overlap the sidebar a bit. Like I said I don't build blogs from feeds, just a few relevant pages