The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How stock navbar width is determined?
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
|
||||
|
||||
there is padding around the navbar .. you will have to remove $spacer_open in the header template - move it under the navbar
|
#3
|
|||
|
|||
Hey Joe,
I just tried that but by moving the $spacer_open under the navbar, it made the navbar get wider (to match the width of .page). I want to keep the stock width of the navbar, but just have my custom header match it. Any idea how I can go about that? Thanks Joe! --------------- Added [DATE]1212757355[/DATE] at [TIME]1212757355[/TIME] --------------- Hey Joe, Just figured it out.... you set me out on the right direction with the $spacer_open variable. What anyone needs to do to match the width of the navbar is move $spacer_open from the bottom of the header template to the top of the header template, and set your custom div width to 100%. And vioala... that's it. Thanks Joe! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|