• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How do I center text?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to figure out how to center my text in my signature on a JForum.
Many thanks in advance!
[originally posted on jforum.net by schnautzr]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a couple of ways to do this.

One is to change your default profile options to automatically uncheck "Disable HTML in this message" (assuming the admin hasn't limited that). Then just use a <div style="margin: auto;"> or the older <center> tag in your signature.

Another way to do this is to add a Center bb code tag to the jForum bb_config.xml file. E.g.



This will allow
text
BB tags to be used in both posts and signatures.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some minor corrections... I said to UNCHECK the disable html option... i.e.. ENABLE html. Having this enabled will also include what is in the signature. If you do it in your profile settings, it will automatically enable html for all your postings... unless the admin has forced this off.

You should be able to include the HTML to center your sig without needing to bug the admin.

FYI - There is no CENTER or ALIGN BBCode by default. The tag above would have to be added by your admin.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only two problems...
1) I'm planning on using the code for part of my signature, so I can't "disable the HTML";
and
2) The [center] tag seems to be disabled.

BTW-- I'm not the admin, and likely have zero influence on him/her.
[originally posted on jforum.net by schnautzr]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic