View Full Version : Fully justify posts
Spangle
05-13-2013, 09:30 AM
I'm trying to fond a template MOD to allow posters to fully justify their posts, ( like a newspaper column), is there one or is there a snippet to put this in the editor.
nerbert
05-13-2013, 11:33 AM
Do you want all posts justified or do you just want a bb code to do it?
Spangle
05-13-2013, 12:56 PM
Do you want all posts justified or do you just want a bb code to do it?
I would prefer it to be automatic, that way I think the board looks more professional
That is providing user text formatting can override it.
For eg, I still want users to be able to center text if they want to ?
nerbert
05-13-2013, 02:00 PM
in postbit.css find line 256, about a quarter down and modify as shown
.postcontent {
word-wrap: break-word;
text-align:justify;
}
.postbit .posttitle {
display:block;
padding: {vb:stylevar padding};
font-weight:bold;
font: {vb:stylevar post_title_font};
margin: 0;
}
.postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
max-width: {vb:stylevar image_medium_max};
}
/*postbit legacy*/
I don't know if this works for the legacy version. Test it out and see how it works with center tags.
Generally it seems to work nicely as long as the user hasn't used carriage return
Spangle
05-13-2013, 02:50 PM
in postbit.css find line 256, about a quarter down and modify as shown
.postcontent {
word-wrap: break-word;
text-align:justify;
}
.postbit .posttitle {
display:block;
padding: {vb:stylevar padding};
font-weight:bold;
font: {vb:stylevar post_title_font};
margin: 0;
}
.postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
max-width: {vb:stylevar image_medium_max};
}
/*postbit legacy*/
I don't know if this works for the legacy version. Test it out and see how it works with center tags.
Generally it seems to work nicely as long as the user hasn't used carriage return
That seems to have done the job, thanks a million
Spangle
06-04-2013, 09:21 PM
This doesn't work in blogs, can I add the justify command some where in the Blog CSS to make it work there ?
nerbert
06-04-2013, 11:24 PM
in blog.css scroll down about 20% to line 199 and find this and modify
.fly {
float: {vb:stylevar right};
display: inline;
font-size: 88%;
}
<vb:if condition="$stylevar['textdirection'] == 'rtl'">
.blogentrybit .fly .popupmenu a.popupctrl, .bloghead .fly .trackbacks, .bloghead .fly .comments {
display: block;
float: {vb:stylevar right};
}
</vb:if>
.lastedited, div.tags, dl.blogcategory, .smallfont {
font-size: {vb:stylevar small_fontSize};
}
.blogmeta .tags img {
display: none;
}
.blogmeta .tags:hover img {
display: inline;
margin-top: -5px;
}
.blog_date, .comment_date {
font-size: {vb:stylevar small_fontSize};
/*color:{vb:stylevar body_color};*/
}
.blogcontent {
margin-top:8px;
margin-bottom:8px;
font:{vb:stylevar content_msg_font};
text-align: justify; /* ----------------------------------------------- */
}
Spangle
06-05-2013, 08:02 AM
Thats probably the only one I didn't try, thanks for the heads up
Toorak Times
06-07-2013, 03:13 PM
Thank god I kept looking. I'll give this a try tonight, been desperately looking for a simply add to the wysiwyg bbcode but this should do the job...I hope...
This worked brilliant in The Blog for me, absolute justify, wonderful http://www.tooraktimes.com.au/entry.php/337-Kooyeh-live-to-air-on-The-Party-Show-at-RRR-fm
But cms, Not so good, but close and better
works great in Forum http://www.tooraktimes.com.au/showthread.php/13199-Mitchell-Faircloth-s-Anzac-Rumination?p=13451#post13451
So close...
--------------- Added 1370625144 at 1370625144 ---------------
in blog.css scroll down about 20% to line 199 and find this and modify
.fly {
float: {vb:stylevar right};
display: inline;
font-size: 88%;
}
<vb:if condition="$stylevar['textdirection'] == 'rtl'">
.blogentrybit .fly .popupmenu a.popupctrl, .bloghead .fly .trackbacks, .bloghead .fly .comments {
display: block;
float: {vb:stylevar right};
}
</vb:if>
.lastedited, div.tags, dl.blogcategory, .smallfont {
font-size: {vb:stylevar small_fontSize};
}
.blogmeta .tags img {
display: none;
}
.blogmeta .tags:hover img {
display: inline;
margin-top: -5px;
}
.blog_date, .comment_date {
font-size: {vb:stylevar small_fontSize};
/*color:{vb:stylevar body_color};*/
}
.blogcontent {
margin-top:8px;
margin-bottom:8px;
font:{vb:stylevar content_msg_font};
text-align: justify; /* ----------------------------------------------- */
}
Thanks works brilliantly Nerbert!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.