Announcement

Collapse
No announcement yet.

Matching Width of stock navbar...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Matching Width of stock navbar...

    I am designing a custom header template and I want a custom div box to match exactly the fluid width of the navbar, however I can't seem to get it quite right.

    I have removed everything from the header template, so the custom div I am creating has the next parent of '.page'... as does the navbar template.

    Does anyone know how the navbar width is calculated? I've looked and tried everything and keep being off by small amounts.

    Thank you to anyone who can shed some light on this for me.

  • #2
    Put "$spacer_open" back in your header template. It is what actually sets up the page, borders and overall size. The navbar width is 100% within the space allowed. The overall space is controlled by the Main Table Width under:
    Styles & Templates -> Style Manager -> %Your Style% -> Stylevars (on All Style Options Dropdown)
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      Hey Wayne,

      Thanks for the hint on $spacer_open. I just put another instance of $spacer_open at the very top of the header template and set my custom div to 100% and it worked like a charm! Thanks Wayne!

      Comment

      Loading...
      Working...
      X