Have you ever had an image show up on your website which is to large, causing problems for your WordPress theme? This is especially common for WordPress blogs that have multiple authors, where some authors or guest posters may not know how big they can make the images.
Fixing this is incredibly easy with this CSS hack! All you need to do is take the following code and place it in your stylesheet, setting a maximum width for your images:
.postarea img {
max-width: 500px;
height: auto;
}
In the above code snippet, you’ll want to replace postarea with whatever div ID or CLASS your theme uses for the content. You can also adjust the 500px to the maximum width you’d like for your images to be.
Note: This hack may not work on some versions of Internet Explorer.














There Are 7 Responses So Far »
Pingback: Round WordPress: Summer of Code, Kubrick Retired, How Tos, WebWare 100, and WordPress Fan Blogs | linkfeedr
Pingback: Membatasi Ukuran Gambar Blog | Tarqy dot Com
Pingback: Image too big? « Best Wordpress News™
Pingback: WordPress Time-saving Tips | Matthew Michaels – Graphic Design
Pingback: Seven WordPress Hacks for Bloggers | Image Karthik