Log in

View Full Version : Limit width of posts (number of characters per line)


JtChurch925
10-19-2007, 01:49 AM
Is it possible to limit how many characters wide the posts can be? For instance, on a larger or wide-screen monitor the posts don't stretch all the way across the screen, but word wrap somehow? Or set a limit on how many characters can appear on one line, forcing a return?

The reason I want to do this of course, is that having text on a screen stretching for more than 6 or 8 inches across a screen can be difficult to read. Slimmer columns of text seem easier to read.

Any ideas?

Freesteyelz
10-19-2007, 03:42 AM
If you'll settle for a set width instead of set characters than one method is to control the postbit(_legacy) width by using CSS:


<!-- message -->
<div id="post_message_$post[postid]" class="msgwidth">$post[message]</div>
<!-- / message -->


Add the red. Then in Main CSS and at the very bottom Additional CSS add:


.msgwidth {
width:500px;
}


Change "500px" to whatever pixel size you want. The above code will only control the message.

If you want the other message contents (e.g., title, attachments, signature...) to confine to the set width then add that class to the relevant "div" tags. Or simply add in red (and don't do the above steps):


<td class="alt1" id="td_post_$post[postid]">
<div class="msgwidth">
<!-- message, attachments, sig -->


And


<!-- message, attachments, sig -->
</div>
</td>

JtChurch925
10-19-2007, 10:53 AM
Excellent reply, I think that will work. I'm going to try it today and post my results. Thanks again!:up: