vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How stock navbar width is determined? (https://vborg.vbsupport.ru/showthread.php?t=181685)

kevinmanphp2 06-06-2008 11:15 AM

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.

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 [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!


All times are GMT. The time now is 08:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01030 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete