• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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]
 
I am a man of mystery. Mostly because of this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic