Runboard.com
Слава Україні!
Welcome: You have reached Pastor Rick's Design Elements message board... Enjoy your stay and please tell others about this board...

User Quick Links:    runboard.com       Sign up (learn about it) ● Sign in (lost password?)

 
Pastor Rick Profile
Live feed
Blog
Friends
Miscellaneous info

Head Administrator

Registered: 07-2005
Location: Texas
Posts: 560
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."

span.postlistpostbody img {
max-width:500px;
width:expression(this.width > 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


---

Advertise Boards On TRDConceptsDE
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)