News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

July 16, 2019, 10:48:55 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 188515
  • Total Topics: 20736
  • Online Today: 265
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 18
Total: 18

Author Topic: Image Resizing?  (Read 2986 times)

0 Members and 1 Guest are viewing this topic.

betty02

  • Guest
Image Resizing?
« on: October 22, 2009, 03:10:31 AM »
Over at www.twingooc.com we have our latets new 9usually involves pictures) being posted and they show in the centre of SMF.

Now my question is when images are larger then the centre block they stretch as you can see if you go there. Is it possible to resize them images just for that purpose on the home page without needing to resize them for the whole of SMF?

Cheers
Simon

Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: Image Resizing?
« Reply #1 on: October 22, 2009, 05:39:40 AM »
Simon,

At this time, there is no way to have your images different sizes in the Forum posts and in the posts that are shown on the Front Page.  FWIW, I am working with another member on the Spanish board that is having the same issue.  You may want to have a look at this post I made there ...
http://www.tinyportal.net/index.php?topic=31212.msg249593#msg249593

If this is a feature that is important to you, then you could put in a Feature request in the Feedback Board.  The alternative would be to widen your Forum to 90% or 95%.  We could possibly help you with that but I don't know what theme you are using or who designed it since there is no theme author's copyright on your site.

ZarPrime

Offline bloc

  • Founder
  • *
  • Posts: 5214
    • Bloc
Re: Image Resizing?
« Reply #2 on: October 23, 2009, 05:04:44 PM »
You can try a simple css solution that might help. Basically it makes all images have set maximum width so they never go over that. You will need to decide what that width will be though:
Code: [Select]
.windowbg2 img
{
 max-width: 500px;
 height: 100%;
}

Also, it works only in the most recent browsers, so its not 100% fail-proof. Worth a try though.