How do I centre text?
Moderator: EN - Forum Moderators
- Transfinite
- Posts: 145
- Joined: Sun Oct 26, 2008 3:30 am
- Spoken languages: English
How do I centre text?
I've noticed a lot of trials have tried to do the whole, -- Centered text here! -- thing for the beginning of witness testimonies that the actual games do. However, it winds up not working.
After some testing, I've found that it's possible to move the text down one or two lines by hitting enter, and you can more-or-less center it by adding a number of times before the words you want centered (though it takes guesswork to see how many you need, and it may display differently for others), and it will display that way when you play the trial (example here) but if you go back to edit the trial, you have to fix it all over again or else it will have been lost. Not fun.
Is there a simpler way to do this?
After some testing, I've found that it's possible to move the text down one or two lines by hitting enter, and you can more-or-less center it by adding a number of times before the words you want centered (though it takes guesswork to see how many you need, and it may display differently for others), and it will display that way when you play the trial (example here) but if you go back to edit the trial, you have to fix it all over again or else it will have been lost. Not fun.
Is there a simpler way to do this?
- RandomJibberish
- Posts: 2721
- Joined: Tue Jul 01, 2008 12:55 pm
- Gender: Male
- Location: UK
Re: Centering text
you can use <centre></centre> tags IIRC, but the text will appear immediately and not click in.
- Transfinite
- Posts: 145
- Joined: Sun Oct 26, 2008 3:30 am
- Spoken languages: English
Re: Centering text
Nope. I tried it with <center> and <centre> and neither worked. And in the text box, once I clicked confirm and then clicked on it again to see what was in it, it had somehow become <span style=""></span>. And I looked it up, there doesn't seem to be a way to center text using span tags.
I tried it with div tags and that didn't work either.
I tried it with div tags and that didn't work either.
- Unas
- Admin / Site programmer
- Posts: 8850
- Joined: Tue Jul 10, 2007 4:43 pm
- Gender: Male
- Spoken languages: Français, English, Español
- Contact:
Re: Centering text
Yeah, that about the <center> tags is a myth someone launched long ago, it never worked. Because a <something> tag in a normal text is automatically converted as a <span style="color:something">. Since "center" is not a colour ( ), it's removed. That's how you get the style="".
Anyway, it's not currently possible to center texts, sorry
Anyway, it's not currently possible to center texts, sorry
- Transfinite
- Posts: 145
- Joined: Sun Oct 26, 2008 3:30 am
- Spoken languages: English
Re: Centering text
Aw.
Oh well, thanks! I'll live.
Oh well, thanks! I'll live.
-
- Posts: 2304
- Joined: Mon Aug 03, 2009 9:00 pm
- Gender: Male
- Spoken languages: English
- Location: Canadia
Re: How do I centre text?
Is it possible to center text in the forums? If so, how?
- Meph
- Posts: 13439
- Joined: Mon Nov 10, 2008 10:07 pm
- Gender: Male
- Spoken languages: English
- Location: Probably Disneyland Paris... or the UK
Re: How do I centre text?
Do not ask questions about the forums here. And no, it's not possible.
Turnabout Carjack | Secrets of a Turnabout
Unas's Birthday Bash (19th - 20th - 21st) | Franziska vs. Oldbag | Turnabout With a Theme
TGS Special Courtroom Session (2005 - 2006) | Turnabout Chill | Turnabout of the Wild West
-
- Posts: 2304
- Joined: Mon Aug 03, 2009 9:00 pm
- Gender: Male
- Spoken languages: English
- Location: Canadia
Re: How do I centre text?
Alright, thanks haha. (Sorry, about the question, but the theme of this topic seemed to fit well lol.)
- Ferdielance
- Posts: 778
- Joined: Sun Mar 09, 2008 12:46 am
- Gender: Male
- Spoken languages: English
Re: How do I centre text?
I saw this topic in the list of FAQs, and I wanted to point out that it IS possible to center text in-game, and you don't even have to mess around with non-breaking spaces. Regular spaces get deleted, but you can use a special EM SPACE character copy-pasted into the text input area.
Like so (it's in between the brackets): [ ]
That allows:
Courtroom Lobby No. 3
Like so (it's in between the brackets): [ ]
That allows:
Courtroom Lobby No. 3
"A slow sort of country!" said the Queen. "Now, here, you see, it takes all the running you can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that!"
- Meph
- Posts: 13439
- Joined: Mon Nov 10, 2008 10:07 pm
- Gender: Male
- Spoken languages: English
- Location: Probably Disneyland Paris... or the UK
Re: How do I centre text?
And yet he contributed something relevant and helpful, rather than pointless creating a new topic. However, what you have posted is off-topic, Mono.
Turnabout Carjack | Secrets of a Turnabout
Unas's Birthday Bash (19th - 20th - 21st) | Franziska vs. Oldbag | Turnabout With a Theme
TGS Special Courtroom Session (2005 - 2006) | Turnabout Chill | Turnabout of the Wild West
- Unas
- Admin / Site programmer
- Posts: 8850
- Joined: Tue Jul 10, 2007 4:43 pm
- Gender: Male
- Spoken languages: Français, English, Español
- Contact:
Re: How do I centre text?
Relevant, yes, but I already warned against using this technique a short while ago :
http://aceattorney.sparklin.org/forum/v ... 48#p474448
So I'd rather advise waiting until V6 is ready
http://aceattorney.sparklin.org/forum/v ... 48#p474448
And I should add that, since then, the update has been made to V6 : V6 no longer collapses regular spaces.Unas wrote:I wouldn't recommend using too many special characters on V5. It's supposed to work, but is quite a big mess in the V5 format, and might get troublesome at some point. (most notably, it'll make the conversion from V5 to V6 a little risky)
V6 should handle this kind of characters cleanly without any problem, but it's not normal for them to be needed, it's a bit of a hack and completely non-intuitive behaviour...
I think I'll just make it so that regular spaces aren't collapsed when displaying text in V6. It's not much work, just a small line of CSS
So I'd rather advise waiting until V6 is ready
- Ferdielance
- Posts: 778
- Joined: Sun Mar 09, 2008 12:46 am
- Gender: Male
- Spoken languages: English
Re: How do I centre text?
Hmm, thanks for the advice. I'll leave the spaces plain for now, then.
"A slow sort of country!" said the Queen. "Now, here, you see, it takes all the running you can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that!"