tropicsbear: Tadashi carrying Ainosuke bridal style (Default)
Bear ([personal profile] tropicsbear) wrote in [community profile] style_system2011-11-02 01:37 pm
Entry tags:

Max image width

Is it possible to set a maximum image width for your layout in your CSS? Sometimes some of my DW friends post huge images that take forever to load.

Thanks in advance for any help!
musyc: A kitten sitting on an open book (Cats: Kitten on books)

[personal profile] musyc 2011-11-02 05:55 am (UTC)(link)
I use this:

.entry-content img { max-width: 500px; }

Change to whatever number works best for you.
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2011-11-02 11:53 pm (UTC)(link)
I use

.entry-content img { max-width: 99%; }

for mine, then it scales to whatever monitor size I'm on nicely and can't overflow. Rather nifty little trick.

Just checked, I'm not using .entry-content, I'm using .contents, but don't think it should make any difference.