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

z-index should consider adverts

Discussion in 'XenForo Suggestions' started by Stuart Wright, Feb 2, 2014.

  1. Stuart Wright

    Stuart Wright Well-Known Member

    Consider that the most successful Xenforo forums are very likely to have to carry banner ads to cover the server costs.
    The default z-index settings mean that menus are behind ads in some cases.
    Could the z-index settings of everything be changed to take advertising in to account?

    The IAB guidelines for z-index use here
    http://www.iab.net/guidelines/508676/508767/displayguidelines
     
    ideenwerk, Mouth, Alien and 2 others like this.
  2. BamaStangGuy

    BamaStangGuy Well-Known Member

    Just ran into this issue as well. Have you found a solution @Stuart Wright
     
  3. Mike Creuzer

    Mike Creuzer Well-Known Member

    I could be wrong, but I still feel this is the correct answer: Since there is no standard, there is nothing XenForo can do to make sure advertisements show up at the correct z-index.

    There needs to be a z-index standard, I've always said. Not just for xenforo but something through W3C.

    Body tag: -1000
    Generic elements: 0

    Videos/Media: 1000
    Advertisements: 2000
    Dropdowns: 3000
    Fixed position elements: 4000
    Overlay Masks: 5000
    Overlays/Modals: 6000
    etc.
     
    Daniel Hood likes this.
  4. Stuart Wright

    Stuart Wright Well-Known Member

    I would rather that there was a standard defined by W3C, but until then there *is* a standard as defined by the Interactive Advertising Bureau (IAB) and they are specific about the z-index values: http://www.iab.net/guidelines/508676/508767/displayguidelines
    If advertisers don't comply with this, their ads are removed from AVForums.
    Xenforo should consider these guidelines when setting the various z-indexes.

    Having upped the z-index of the drop down menus to something huge, the only problem I have at the moment is that the drop-down menus are in front of overlays. So if I, for example, drop down the user menu and click preferences, the menu stays visible over the top of the preferences overlay.
    Not a great situation and when I've tried to change the overlay settings, I tend to screw up things elsewhere.
     
    ideenwerk likes this.
  5. EQnoble

    EQnoble Well-Known Member

    I have an idea that I just tested locally and it worked, it may work on your site pending (you have a lot of stuff customized) the situation.
    I assume that this is what you are trying to achieve...
    vzxcvfsv.png

    If you convo me I have a few minutes now in which I can try it out.
     

Share This Page