SimplePortal
Support => English Support => Topic started 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?
-
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))
div.sp_image img
{
width: 300px;
}
I hope this will help you style your portal page the way you like it.
-
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.
-
Happy to help!