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 ] Simple Scrollbar in posts
Topic Started: Mar 4 2010, 06:40 AM (215 Views)
Dan_crossy
Member
[ * ]
Board Address:
http://z10.invisionfree.com/359th_Battle_Group/
Type of Request:
Addon
Description:
Not sure if anyone is able to help out here, i did use the search function however didnt come up with anything. I'm looking for a code that allows me to add a scrollbar to the posts in my forum, atm if someone posts a big picture it warps the whole forum. I would like to be able to scroll around the post (up, down, left and right) if possible. Also im trying to change the font colour to white if anyone has any ideas. Thanks in advance...

Dan
Offline Profile Goto Top
 
Pete B-ZNR
Member Avatar
Member
[ *  *  * ]
Hi Dan,

You could automatically resize large images if you want. Add this to the end of your Style Sheets.

.postcolor img { max-width:500px; max-height:500px; }

...and you can adjust the pixel values as you need to. Only problem is it will not preserve the ratio and so images might look weird if they're particularly thin or tall.

However, if you want to add the scrollbars, you can add this to the end of your style sheets instead:

.postcolor { max-width:500px; max-height:500px; overflow:auto; }

Just adjust the pixel values to how wide you want the forum to stretch before the scrollbars come into action.

Quote:
 
Also im trying to change the font colour to white if anyone has any ideas.


Any specific part of the forum?
Offline Profile Goto Top
 
Dan_crossy
Member
[ * ]
Thanks for the help Pete, im trying to change the font of each posts
Offline Profile Goto Top
 
Pete B-ZNR
Member Avatar
Member
[ *  *  * ]
Okay, add this to the .postcolor bit, before the closing }

color:#fff;
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Completed!

Your code request has been completed.

Thank you for using our Member Request system here at Zathyus Networks Resources! If you have any questions regarding this topic, feel free to PM the code creator or post a new topic in the request forum. :)

Have a nice day!
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic