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

Individual CSS Element Styles in the Alert Menus

Discussion in 'XenForo Questions and Support' started by DeltaHF, Sep 23, 2011.

  1. DeltaHF

    DeltaHF Well-Known Member

    I'm doing heavy customization to the alert menus, and this issue is driving me crazy.

    In navigation_visitor_tab, the hidden alert menu divs (#ConversationsMenu, #AlertsMenu, etc.) have the following style properties directly applied to them (there's some variation in the pixel values between the different menus).

    style="left: 836px; top: 101px; visibility: visible; display: none;"
    The problem is that there's no trace of these properties in the corresponding divs inside navigation_visitor_tab. How can I edit these values?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That inline styling is part of your custom style. Try searching for it:

    Admin CP -> Appearance -> Search Templates

    The template code might not be exactly the same as the output for the purpose of searching. But the raw html parts should be there. For example, search for style= in the relevant templates. And make sure you are searching the same style you are viewing.
  3. DeltaHF

    DeltaHF Well-Known Member

    I've tried searching for it, but came up empty. Upon closer inspection, I've now realized the style attribute isn't in the page's source, but it's being shown in Firebug as part of the corresponding divs. This also occurs in the default template set (and even here on XenForo.com).

    I suppose these values are set dynamically with Javascript so they know in which "direction" to open, and like avatar sizes, have been hard-coded into the software... :unsure:

Share This Page