PDA

View Full Version : How stock navbar width is determined?


kevinmanphp2
06-06-2008, 11:15 AM
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.

Princeton
06-06-2008, 11:33 AM
there is padding around the navbar .. you will have to remove $spacer_open in the header template - move it under the navbar

kevinmanphp2
06-06-2008, 11:56 AM
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 1212757355 at 1212757355 ---------------

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!