View Full Version : How to center text
unknownkind
06-19-2007, 04:22 AM
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:
<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
<!-- 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:
<!-- 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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.