View Full Version : Center aligning "Message" box
J. Thomas Jeans
07-17-2007, 07:28 AM
I've been poking around in the postbit for a couple of days, and I've also looked for help on this elsewhere, but I can't seem to find an answer.
I'm wondering where I go and what code I have to alter to center align the "Message" box in the "Post New Reply/Post New Thread" prompt?
Here's a grab of how it looks on our forum:
https://vborg.vbsupport.ru/external/2007/07/28.jpg
I'd really rather it be aligned to the center, but I just can't work out how to do it.
I thought the message box area was centered by default?
Any how the templates your want to be looking at are newreply and newthread in these the td with the class 'panelsurround' should be align center:
<td class="panelsurround" align="center">
<div class="panel">
Let me know if thats any help, I've got a sneaking suspicion that the 'Message Area Width' has been set to 100% on your style (default being 540px).
Thanks,
Mat.
J. Thomas Jeans
07-17-2007, 08:35 AM
I've just had a look, made sure both newreply and newthread do have the alignment set to center, and checked the 'Message Area Width', which is set to 500px.
The Message Box is still aligned left. :erm:
Ah! I found the problem. It was in this bit of code:
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
I changed [left] to [center] and it fixed the problem.
Thanks a bundle for leading me to the right panels, Nutz. I'm still feeling my way through the Style Manager -- it's quite a big place to be searching for something in when you're new to it. :)
Oh Just read your edit, glad it worked out :)
Thanks,
Mat
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.