You're welcome.
Welcome: You have reached Pastor Rick's Design Elements message board... Enjoy your stay and please tell others about this board...

Runboard Social       Sign up (learn about it) ● Sign in (lost password?)

Pastor Rick Profile
Live feed
Miscellaneous info

Head Administrator
Global user (premium)

Registered: 07-2005
Location: Texas
Posts: 526
Karma: 11 (+12/-1)
Reply ● Quote
Taming Image Width in Posts

You can add this bit of CSS to your Custom CSS to force images to stay inside your message boards layout in posts. The code doesn't actually resize the posters image size but does resize the image inside the post. This means you could open the image in a new tab or window to see the "full size pic."

[sign in to see URL] img {
width:expression([sign in to see URL] > 500 ? 500: true);

In the example I set the image size width to 500px. You can change it to any number you want to use for your own message board BUT remember you have to change all 3 numbers and they must be the same number. They code does NOT validate but it does work...

Last edited by Pastor Rick, 11/28/2014, 9:23 am


RSFRDAdvertise Boards On TRDREITB
11/28/2014, 9:23 am Link to this post Send Email to Pastor Rick   Send PM to Pastor Rick Blog

Add a reply

You are not logged in (login)