Bear (
tropicsbear) wrote in
style_system2011-11-02 01:37 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
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!
Thanks in advance for any help!
no subject
.entry-content img { max-width: 500px; }
Change to whatever number works best for you.
no subject
no subject
.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.