Advertisement:

Author Topic: Auto resizing of images in posts, etc by CSS.  (Read 113365 times)

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,136
  • Master of BBC Abuse
Re: Auto resizing of images in posts, etc by CSS.
« Reply #100 on: February 02, 2017, 07:05:56 PM »
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.

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 276
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Auto resizing of images in posts, etc by CSS.
« Reply #101 on: February 02, 2017, 09:21:25 PM »
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.

Online br360

  • Lead Support Specialist
  • SMF Hero
  • *
  • Posts: 2,024
    • GenXcommunity
Re: Auto resizing of images in posts, etc by CSS.
« Reply #102 on: February 02, 2017, 09:49:44 PM »
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

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


Offline landyvlad

  • Jr. Member
  • **
  • Posts: 276
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Auto resizing of images in posts, etc by CSS.
« Reply #103 on: February 02, 2017, 10:31:29 PM »
Thanks
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.