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

XF 1.5 Spoilers not aligned

Discussion in 'XenForo Questions and Support' started by Krasen Vachev, Apr 6, 2016.

  1. Krasen Vachev

    Krasen Vachev New Member

    So I want the whole thread to be center-aligned but the spoiler box isn't.
    Here's a screenshot:
    [​IMG]
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Let me just see if this is a thing, generally or something to do with your style:

    Testing a spoiler
    blah
    blah
    blah

    Let's see...​
     
  3. Krasen Vachev

    Krasen Vachev New Member

    seems that it's not from my style
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    There'a right margin applied to bb code block elements in the default style.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Ah, yeah it's actually to be expected because the width of the spoiler container is not as wide as the width of the post container.

    There isn't really an ideal solution to this. Ultimately it's working as I'd expect.

    The only real solution is to make the spoiler container full width, or not center the spoiler itself, like this:

    Let me just see if this is a thing, generally or something to do with your style:​

    Testing a spoiler
    blah
    blah
    blah


    Let's see...

    Which looks like this in BB code:
    Code:
    [CENTER]Let me just see if this is a thing, generally or something to do with your style:[/CENTER]
    
    [SPOILER="Test"][CENTER]Testing a spoiler
    blah
    blah
    blah
    [/CENTER][/SPOILER]
    
    [CENTER]
    Let's see...
    [/CENTER]
    That at least makes the button appear left aligned so it's not quite so much of an issue.
     
    Krasen Vachev likes this.

Share This Page