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)
-   -   How to center text (https://vborg.vbsupport.ru/showthread.php?t=150065)

unknownkind 06-19-2007 04:22 AM

How to center text
 
1 Attachment(s)
How do I left aligned the text to this hack? Im using the hack directly from
https://vborg.vbsupport.ru/showthread.php?t=123117

Heres image attached

(You can view it better at http://img255.imageshack.us/img255/4944/centerlg1.jpg)

unknownkind 06-19-2007 02:47 PM

Anyone?

Lynne 06-19-2007 03:07 PM

Put div tags around it:
HTML Code:

<div align="center">Text to be Centered</div>

unknownkind 06-19-2007 03:23 PM

Oops I meant to left align not center sorry.. it is centered already....

Heres my code
Code:

<!-- Infobar (hack) -->
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar"><a href="http://www.pirator.net/forums/register.php?"><p>It appears you have not yet registered to Pirator. To register please click here...</p></a></div>
</if>
<!-- End Infobar -->


Lynne 06-19-2007 03:39 PM

Then perhaps try this:
HTML Code:

<!-- Infobar (hack) -->
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div align="left" id="infobar"><a href="http://www.pirator.net/forums/register.php?"><p>It appears you have not yet registered to Pirator. To register please click here...</p></a></div>
</if>
<!-- End Infobar -->

Or, you can edit the CSS for "infobar" to align left. However, that may affect your site in other areas if that style is used in other places.

edit to add: If that DIV tag is within a TD tag, you may need to align that TD left or align the TR left. (Sorry I can't be more specific on that, I'm a Try-It-And-See type person. :) )

unknownkind 06-19-2007 03:59 PM

Your code worked thanks xP


All times are GMT. The time now is 01:16 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.01097 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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