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!
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.
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.
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
NNO-Stephen wrote:
what, you've never made a typo?
No, I have never made a tyop (by klicking on a bbcode button). But just to be sure. Lets put every possible anagram of [center] into our custom BBCodes.
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.
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.