vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   header background (https://vborg.vbsupport.ru/showthread.php?t=316676)

afterburn25 01-15-2015 03:40 AM

header background
 
I had a problem with my template. the header was only 62px from top to bottom the logo did not automatically increase header size it basically but the header under the nav bar.
I adjusted the header size to fit the logo. however not it didn't increase it with the backgtound image so now has a white space in between

here is page http://www.spicypantry.com how do i fix it so the bg image fills the entire header

nerbert 01-15-2015 03:56 AM

I got it looking pretty good by using inline styles;

Find <div id="header"

Code:

<div id="header" class="floatcontainer doc_header" style="height: 230px;">
                <a name="top" href="forum.php?" id="logo" style="top: 70px;">


afterburn25 01-15-2015 04:13 AM

yes that changes the height but it doesn't add the upper background image to the whole header all i have is white space

nerbert 01-15-2015 05:12 AM

I don'tknow what you mean by upper background image, The black bar with login links?

Looks like you changed floatcontainer class to "display:block". That messes up your navbar links and scrunches them all up. Try setting div id="header to "width:100%" instead.

I dunno why vB makes logo placement so tedious! I've helped some other people with this stuff and had a bad time with it on my own forum

EDIT : You have a top value of 20 px for #toplinks in additional css that you probably don't want

afterburn25 01-15-2015 05:28 AM

no that doesnt work all i need to do is have the background image show up over the whole header there is a white space inbetween the nave bar and the top login panel

--------------- Added [DATE]1421307001[/DATE] at [TIME]1421307001[/TIME] ---------------

also need to float the nave bar links to the left instead of center

--------------- Added [DATE]1421307089[/DATE] at [TIME]1421307089[/TIME] ---------------

I didnt change it its this stupid template i dont know why they designed it this way

nerbert 01-15-2015 06:32 AM

I figured some of this out. Restore your template back to original and restore your style settings.

Now use inline style to give the header div "overflow-y:hidden;" Now it will expand vertically for any image. As for having the black extend all the way down to the navbar I don't think you can do that because it's an image in class doc_header. I would just get rid of the image and set header background color to whatever you want.

afterburn25 01-15-2015 06:51 AM

im not very good with styles and have no idea about how to use inline style i cant find it

nerbert 01-15-2015 07:14 AM

Code:

<div id="header" class="floatcontainer" style="overflow-y:hidden; background-color:#404040;">
I removed class doc_header to get rid of the black top. I don't know what background-color you want. See http://www.w3schools.com/html/html_colors.asp

Anywway I'm off to bed. Will check tomorrow

afterburn25 01-15-2015 03:27 PM

i tried it without doc header but wouldn't work just screwed everything up and put nav bar at top of page I tweaked it a bit and found this worked

Code:

<div id="header" class="floatcontainer doc_header" style="height: 160px; background-color:#00364A;">
how does it look http://www.spicypantry.com

--------------- Added [DATE]1421342965[/DATE] at [TIME]1421342965[/TIME] ---------------

honestly kinda thinking maybe a background image would look nicer there anyway i can use an image instead of color

nerbert 01-15-2015 03:57 PM

If you're going to keep doc_header in there, either get rid of the image part of it or get a nice image 160 px tall.

If you need a gradient image I can make one.


All times are GMT. The time now is 05:09 PM.

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.01816 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete