1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

As Designed Quote, Code, and Spoiler BB Codes Not Affected by Alignment BB Codes

Discussion in 'Resolved Bug Reports' started by Amaury, Apr 24, 2014.

  1. Amaury

    Amaury Well-Known Member

    See my test sample here.

    The code I have there is [CENTER][QUOTE]Test.[/QUOTE][/CENTER]. As you can see the center alignment BB code is outside of the quote BB code, and yet, while the text is centered, the quote block itself is not.
  2. Chris D

    Chris D XenForo Developer Staff Member

    This is expected.

    The underlying CSS property is text-align: center;

    It isn't possible to use that on block elements.
    Amaury likes this.
  3. Jeremy P

    Jeremy P Well-Known Member

    Expected with text-align: center;, sure.. but is there a reason not to use floats instead/too?
  4. Mike

    Mike XenForo Developer Staff Member

    This is mostly technical. The quote/code/etc blocks actually take up 100% of the width -- they just have a fixed right margin (well, in most cases). As such, strictly speaking, there isn't anything to center. If they had a defined width, then it would be possible to do it, though it would need extra CSS (as text-align wouldn't touch them).

    So I think this is a combination of a few statuses: partially as expected, partially a design/browser issue due to possible CSS limits.
    Amaury likes this.

Share This Page