Hidden 9 yrs ago 9 yrs ago Post by ZayZe
Raw
OP
Avatar of ZayZe

ZayZe Don't feel bad doing what you love

Member Seen 3 yrs ago

@Mahz

Type-o in BB-Code Page, as well as issue.

To the left
[center]Dead center[/center]
[right]To the right[/right]


[left]To the left[/left] <Clearly doesn't work
Dead center


To the right

I was trying to use the left align in a post I was going to make in an RP, now I'm frustrated. It's something I can get over, I'm just pointing this inconvenience out to you. I'm pretty sure your indent code doesn't work either.

This is the post that I was posting in. (Cities Tab)
Hidden 9 yrs ago Post by Ellri
Raw
Avatar of Ellri

Ellri Lord of Eat / Relic

Member Seen 1 yr ago

Of course that doesn't work, @ZayZe. you don't need tags to enforce default setting. That is also why that line doesn't have any tags marked up.
Hidden 9 yrs ago Post by ZayZe
Raw
OP
Avatar of ZayZe

ZayZe Don't feel bad doing what you love

Member Seen 3 yrs ago

It's like we're missing the left align button... @Ellri
Hidden 9 yrs ago Post by Ellri
Raw
Avatar of Ellri

Ellri Lord of Eat / Relic

Member Seen 1 yr ago

there aren't buttons for centered or right-aligned, and unless either of those are specified, text will be left aligned.

Its like you're asking for a button to make sure your posts don't come out as raw binary data @ZayZe, something the posts won't do in any case.

Hidden 9 yrs ago Post by NuttsnBolts
Raw
Avatar of NuttsnBolts

NuttsnBolts

Moderator Seen 15 days ago

I think you're over complicating things and confusing BB code with the alignment system off a word processor (Microsoft Word, OpenOffice, etc.)

BB Code is designed to work like webcoding, but it's a simpler format that doesn't allow <html> tags that could potentially break the page and it's structure/security. For instance, this would be the code that would be used to center a paragraph in HTML.
<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.</p>
<p><div align="center">
This is some text!
</div></p>

</body>
</html>

Depending on what the surrounding code is like there may need to be some more lines of code added. Is it the center of a text box? A window? Or a Column? Is there text padding? BB code was created to take some of that heartache out and simplify the code generator by giving it key references to look for. So every time you add [B][/B] it will realise, "Ah, this text needs to be bold" and add that effect.

By industry standard the text will always be left align, because <html> standards state that text will be left aligned, and adding center and right alignments will move the text to the corresponding alignments. So there is no need for ever coding a left align BB code as it is already there by default.

If you want some of your text to be left align simply end the alignment and restart it elsewhere.
1x Like Like
Hidden 9 yrs ago Post by ZayZe
Raw
OP
Avatar of ZayZe

ZayZe Don't feel bad doing what you love

Member Seen 3 yrs ago

Except if you want to center a hider but don't want the text to be centered.
Hidden 9 yrs ago 9 yrs ago Post by NuttsnBolts
Raw
Avatar of NuttsnBolts

NuttsnBolts

Moderator Seen 15 days ago

Ah, I understand what you're talking about and unfortunately that's also a coding issue. The coding works by looking at the beginning [start] tags and then looking at the next tag to see the [/end] tag.

Eg:
Test
[b][i][u]Test[/u][/i][/b]

Easiest way to imagine it is like maths. First you look at items within the brackets, then the multiplication/division, then the addition/subtraction.
10+4x(9-7)=18
Doing it out of order and let's say from left to right and ignoring the brackets could end up with 119, which is a wrong answer except with coding it ends up with formatting, unrecognisable errors.

So let's say you have:
[left][right]text[/left][/right]
Is that text meant to be left aligned or right? or because it's both should it be centered? Maybe it should spread from left to right. The program just simply doesn't know because it's only told to follow a simple command that has resulted in two or more answers.

So in essence what you are trying to do is not center a text part, but trying to center a formatting element which has no formatting properties to begin with as it is there to serve the text, much like Bold, Itallics or Underlines. Treat everything within a hider as an entire entity or a grouped selection of text. When you tell the hider to center and the interior text to left align you are actually saying, "I want you to do this, but I also want you to do that. Now I know you can only do one thing but I want you to do both at once."
↑ Top
© 2007-2024
BBCode Cheatsheet