SimplePortal

Support => English Support => Topic started by: pixeleyes on October 15, 2010, 11:41:04 AM

Title: Attachment Size
Post by: pixeleyes on October 15, 2010, 11:41:04 AM
As by using SP we can add recent attachment on any page of forum!

So just wanted to know here that how can I resize the image size

as per require?

There is one option in SP general settings RESIZE IMAGE ON PORTAL.

But i wanted to make more small size, so where can i change the code?
Title: Re: Attachment Size
Post by: AngelinaBelle on October 15, 2010, 02:04:29 PM
That setting is for resizing images in articles and in boardnews blocks.
It does not operate on images in the recent image attachments block.
 
One approach you could take is to change the CSS for these attachments.
 
I suggest you could experiment, in portal.cs, with a rule for "div.sp_image img"
Perhaps (and I haven't tested this, but you can, quickly http://www.w3schools.com/css/css_boxmodel.asp (http://www.w3schools.com/css/css_boxmodel.asp))
 
Code: [Select]
div.sp_image img
{
 width: 300px;
}

I hope this will help you style your portal page the way you like it.
 
 
Title: Re: Attachment Size
Post by: pixeleyes on October 17, 2010, 08:38:43 AM
Thanks for the help! Problem is solved.

As your instruction I added these code in portal.css

now RECENT ATTACHMENT IMAGE resizing right, as I was required.

Title: Re: Attachment Size
Post by: AngelinaBelle on October 18, 2010, 05:00:30 PM
Happy to help!
SimplePortal 2.3.8 © 2008-2024, SimplePortal