vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Center aligning "Message" box (https://vborg.vbsupport.ru/showthread.php?t=152494)

J. Thomas Jeans 07-17-2007 07:28 AM

Center aligning "Message" box
 
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.

Nutz 07-17-2007 08:21 AM

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:
Code:

<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:

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. :)

Nutz 07-17-2007 08:51 AM

Oh Just read your edit, glad it worked out :)

Thanks,
Mat


All times are GMT. The time now is 12:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01169 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete