automatically constrain image sizes in wordpress
October 4th, 2006 by Lawrence David
large images i uploaded into my wordpress blog would constantly float outside of my text margins and end up partially sitting beneath my sidebars.
it took a while, but i finally found the piece of .css code to clean up the mess:
p img { padding: 0; max-width: 100%; }
simply insert the above code into your style.css file and hopefully, your images will correctly size themselves!