We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Default Image Size
Topic Started: Jul 30 2012, 01:45 PM (326 Views)
Deleted User
Deleted User

Board Address: http://thebeeandbarb.com/index/
Board Software: ZetaBoards
Description:

Can a code be wrote to make all image posted on the forum (if they are bigger than 600x400) be downsized to 600x400?

Thanks
Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Admin CP → Themes → Board Template (JavaScripts)
Code:
 
<style type="text/css">
td.c_post img,td.c_sig img {
max-width:600px;
max-height:400px;
}
</style>
This code will resize images larger than 600x400 to that size, but only within one's posts and signature.
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Find the following in your css:

Code:
 
.c_post img,#topic_review img {
max-width:90%;
}


Replace it with:

Code:
 
.c_post img,#topic_review img {
max-width:600px;
}


basically, you'll be changing 'max-width: 90%;, to 'max-width:600px;'. :)

EDIT: DaPizzaMan got there first. :P Though, I find just limiting the width a better solution, otherwise images might re-size disproportionately.
Edited by Steve, Jul 30 2012, 02:21 PM.
Offline Profile Goto Top
 
Deleted User
Deleted User

Works great! Thank you to both of you :D
Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic