• Welcome to Simple Machines Community Forum. Please login or sign up.
October 19, 2021, 04:30:10 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Auto resizing of images in posts, etc by CSS.

Started by Antechinus, June 02, 2013, 02:44:08 AM

Previous topic - Next topic

Antechinus

1/ No. More work for me. If anyone wants a mod, they're welcome to make it.

2/ Well, if you think about that question for a minute, it should be clear that reversing the process would be exactly as easy as implementing it in the first place.

landyvlad

1, Fair call.
2. Cool. My brain was slush when I asked that question.  (It's mildly more gelatinous now...)

Thanks mate.
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

br360

It is a pretty easy thing to add or remove. The best part is that you don't have to add any of the code in between other code or in the middle of a template- it's just adding it to the very bottom of your index.css. Like Antechinus said; if you don't like the results, just go back into that file and remove it.

If I recall, wasn't your main issue the resizing of attachments posted underneath posts? If so, all you would really need to add would be this part below as a lot of what he posted deals with avatars, image in signatures, and images that are in posts using img tags-all that the responsive mod you added should already deal with

.attachments>div>img {
height: auto;
width: auto;
max-width: 95%;
max-height: 640px;
}



landyvlad

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

Advertisement: