MyBB Community Forums

Full Version: Align Signature Center
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have tried every code know to man

<span style="text-align: right;">{$post['signature']}</span>

<div style="text-align:right:">
<hr size="1" width="50%" align="left" />
{$post['signature']}
</div>

In CSS:
max-width: 90%;
margin-left: auto;
margin-right: auto;

Nothing changes. Signature keep floating to the right if it's below the "author" information in postbit classic. Any ideas?
Try this:

<div align="center">
{$post['signature']}
</div>
(2015-01-19, 11:44 PM)Ben_Conway Wrote: [ -> ]Try this:

<div align="center">
{$post['signature']}
</div>

Oh yea, forgot that one, Nope.
What is your forum url?
Sigs don't show up for guests. And it only happens for long posts where members don't have their signatures center aligned. If they leave the signature defaulted to align left that's when it happens, so finding them on the forum is like finding a needle in a haystack, but when it happens it's annoying.
If you use the default mybb 1.8 theme

Search in theme global.css in advanced mode
.post_content .signature {
	margin-top: 5px;
	border-top: 1px dotted #ddd;
	padding: 10px 0 4px 0;
}

Replace this part with:
.post_content .signature {
	margin-top: 5px;
	border-top: 1px dotted #ddd;
	padding: 10px 0 4px 0;
	text-align:center;
}

.post_content .signature div{
	text-align:center !important;
}
Previous post did not work.  This is what I have


Partial postbit code on default template:


<div class="post_content">
 <div class="post_head" title="{$post['subject_title']}">
 {$post['posturl']}
 {$post['icon']}
 <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
 {$post['subject_extra']}
 </div>
 <div class="post_body scaleimages" id="pid_{$post['pid']}">
 {$post['message']}
 </div>
 
<div class="float_left_rep">{$post['customrep']}</div>
</div>
{$post['simplelikes']}
{$post['attachments']}
 {$post['signature']}
 </div>
</div>



Signature shows up like this


[attachment=33557]


Postbit on custom template:

<div class="post_content">
 <div class="post_head" title="{$post['subject_title']}">
 {$post['posturl']}
 {$post['icon']}
 <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
 {$post['subject_extra']}
 </div>
 <div class="post_body scaleimages" id="pid_{$post['pid']}">
 {$post['message']}
 </div>
 
<div class="float_left_rep">{$post['customrep']}</div>
</div>
{$post['simplelikes']}
{$post['attachments']}
 {$post['signature']}
 </div>
</div>

Signature shows up like this.

[attachment=33558]


CSS styles are the same. Codes look the same. What am I missing?
Anybody know a fix to this?
^ please post the content of postbit_signature template

MyBB 1.8.3 stock theme postbit_signature code is like below
<div class="signature scaleimages">
{$post['signature']}
</div>
this style property works to put signature content in center
.signature {text-align: center;}
Postbit Template:
<div class="signature scaleimages">
{$post['signature']}
</div>

My theme css only has:
.post_content .signature {
margin-top: 5px;
border-top: 1px dashed #414040;
padding: 10px 0 4px 0;
text-align:center;
}

and:
.scaleimages img {
max-width: 90%;
}

Sorry didn't this see this bit there too

.post_content .signature div{
text-align:center !important;
}
Pages: 1 2