Center Tag In Phpbb3?!

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Kokuei
Registered User
Posts: 64
Joined: Sun Nov 26, 2006 6:19 pm
Location: On the other end of the cable.
Contact:

Re: Center Tag In Phpbb3?!

Post by Kokuei »

NNO-Stephen wrote: <center> is far better than div align whatnot because it's shorter and less prone to screwing up (typos).

How do you find this relervant when you can name the custom BBcode tag to whatever you like? [thisthingwillputsomeshitinthemiddle]{TEXT}[/thisthingwillputsomeshitinthemiddle] will even work. If it's an admin, setting up the BBCode wrong, and make that kinda mistake he should be demoted and limited to notepad use only. :|


On a more personal note, I would go with CSS since its kinda the standard for styling in phpBB3 and easy to manage.
User avatar
NNO-Stephen
Registered User
Posts: 398
Joined: Fri May 23, 2003 12:47 am
Location: Tulsa, Oklahoma
Contact:

Re: Center Tag In Phpbb3?!

Post by NNO-Stephen »

what, you've never made a typo?
Image
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Center Tag In Phpbb3?!

Post by Highway of Life »

wo mee? I nevr mak tipos, I dont no abote anebode else.

When coding, it's always important to get everything perfect... as you know, a simple missed ".", "'", or ";" can cause a fatal error for the whole thing.
Image
User avatar
Handyman
Registered User
Posts: 522
Joined: Thu Feb 03, 2005 5:09 am
Location: Where no man has gone before!
Contact:

Re: Center Tag In Phpbb3?!

Post by Handyman »

NNO-Stephen wrote: what, you've never made a typo?

wht tipos¿... but... just setup your bbcode so users can use
[center]{TEXT}[/center]
[left]{TEXT}[/left]
[right]{TEXT}[/right]
and just use
<div style="text-align: center;">{TEXT}</div>.
<div style="text-align: left;">{TEXT}</div>.
<div style="text-align: right;">{TEXT}</div>.
Then you can be up-to-date with that XHTML stuff and your users can be happy :)
My phpBB3 Mods || My Mod Queue
Search Engine Friendly (SEO) URLs || Profile link on Avatar and/or Username || AJAX Chat
Display Posts Anywhere || CashMod || AJAX Quick Edit || AJAX Quick Reply

Image
Rotsblok
Registered User
Posts: 325
Joined: Mon Nov 14, 2005 12:21 pm
Location: x= y+1

Re: Center Tag In Phpbb3?!

Post by Rotsblok »

users???? i have forum just for me :twisted:
ø = 1.618033988749895...
Everything has ø in it
Kokuei
Registered User
Posts: 64
Joined: Sun Nov 26, 2006 6:19 pm
Location: On the other end of the cable.
Contact:

Re: Center Tag In Phpbb3?!

Post by Kokuei »

NNO-Stephen wrote: what, you've never made a typo?


No, I have never made a tyop (by klicking on a bbcode button). :P But just to be sure. Lets put every possible anagram of [center] into our custom BBCodes. :mrgreen:
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Center Tag In Phpbb3?!

Post by Highway of Life »

You mean like so...

Code: Select all

<center><div align="center" style="text-align:center; margin-left:auto; margin-right:auto;">{TEXT}</div></center>
Did I miss any?
Image
User avatar
DoubleJ
Registered User
Posts: 105
Joined: Thu Jan 13, 2005 4:19 pm
Location: The Netherlands
Contact:

Re: Center Tag In Phpbb3?!

Post by DoubleJ »

NNO-Stephen wrote: <center> is far better than div align whatnot because it's shorter and less prone to screwing up (typos).

besides, it works EVERYWHERE.

and besides, it IS valid HTML. it may have been depricated in 4.01, but it's still HTML. it's not valid XHTML 1.0 strict but *beep* it, it's HTML. so code reader, might wanna do some homework because you cannot say it was "never" valid.


If you want your site to be valid, you have to be consequent regarding this matter.
a <div style="text-align: center;">{TEXT}</div>
is better then <center> because xthml strict indeed does not allow you to add aligning elements to your html code.
DoubleJ - Blah
User avatar
NNO-Stephen
Registered User
Posts: 398
Joined: Fri May 23, 2003 12:47 am
Location: Tulsa, Oklahoma
Contact:

Re: Center Tag In Phpbb3?!

Post by NNO-Stephen »

like I said, it's not valid XHTML 1.0

explicitly stated that. so if you want it to be valid XHTML 1.0 then yeah, don't use it.

but codereader said it was never valid HTML. that's wrong.
Image
code reader
Registered User
Posts: 653
Joined: Wed Sep 21, 2005 3:01 pm

Re: Center Tag In Phpbb3?!

Post by code reader »

this is completely off-topic and non-relevant, but i'll give it one more try:
<some_tag align="center"> is deprecated, though valid.
<center> was never a html 4.0x (either transitional or strict) valid tag.

it was a non-standard element introduced by netscape before they supported html 3.0, and so it was incorporated into html 3.2 spec, where it was defined as a shorthand for <div align="center">.
it's true that it's still supported by all major browsers today, but, unless one has a good reason, one should not use non-standard elements. since there is no good reason (or even any reason at all) to use it, i don't think it's a good idea.
otoh, if you do decide to use it, rest assured that i will not try to prosecute you in any way.
Post Reply