vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Span align question (https://vborg.vbsupport.ru/showthread.php?t=304949)

mathforum 11-24-2013 12:35 AM

Span align question
 
Hi everyone,

I want to add some text to the same line in the postbit legacy template which contains the post date and post number. I've found the right location and the code I need works but I can't get it to align properly. Here's a picture of what it looks like now.

https://vborg.vbsupport.ru/external/2013/11/20.png

First I tried:
Code:

<span style="color: #a22547; text-transform: uppercase;
font-weight: bold;text-align=center">
</span>

but that ended up with the text appearing right next to the date. So for now the only thing I could think of was adding manual spaces in html a few times to create some kind of gap for now. This is a horrible method though and obviously I can't use this as a solution so any ideas as to how I can align this text "Thread Author" in the center of the text box?

ozzy47 11-24-2013 12:39 AM

What is the location you added that to?

mathforum 11-24-2013 12:42 AM

Just after this bit in the legacy template:
Code:

<span class="date" style="color: #a22547; text-transform: uppercase; font-weight:
bold;">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']">,&nbsp;<span class="time" style="color: #a22547;">{vb:raw post.posttime}</span></vb:if>
</span>
</vb:if>


ozzy47 11-24-2013 12:49 AM

Try this.

Code:

<span style="color: #a22547; text-transform: uppercase;
font-weight: bold; float:right;">Thread Author
</span>


mathforum 11-24-2013 12:53 AM

Now it's on the right side against the post number. Tried using float:center as well but didn't work. :confused:

https://vborg.vbsupport.ru/external/2013/11/19.png

ozzy47 11-24-2013 01:01 AM

Ok try this one.

Code:

<span style="color: #a22547; text-transform: uppercase;
font-weight: bold; padding-left:auto; padding-right:auto;">Thread Author
</span>


mathforum 11-24-2013 01:09 AM

:(

Now it's back to the left side. I wish I had better news and I appreciate your time!

ozzy47 11-24-2013 01:12 AM

1 Attachment(s)
Can you pm me a admin account, so I can try it on your site, as I am able to center it fine on mine.

Max Taxable 11-24-2013 01:14 AM

Maybe try:
HTML Code:

<span class="date" style="color: #a22547; text-transform: uppercase; font-weight:
bold; padding-left:auto; padding-right:auto;"
>
Thread Author
</span>


Quote:

Originally Posted by mathforum (Post 2463218)
Just after this bit in the legacy template:
Code:

<span class="date" style="color: #a22547; text-transform: uppercase; font-weight:
bold;">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']">,&nbsp;<span class="time" style="color: #a22547;">{vb:raw post.posttime}</span></vb:if>
</span>
</vb:if>


Also, put it before the </vb:if> conditional not after.

mathforum 11-24-2013 01:24 AM

@Max - still didn't work. We have a very custom forum design so maybe there is some non-standard CSS attribute messing this up. Appreciate the suggestion.

ozzy47 is taking a look at my code right now I think so we'll see what he finds.


All times are GMT. The time now is 04:25 AM.

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.01059 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete