Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2010, 02:14 AM
josephu's Avatar
josephu josephu is offline
 
Join Date: Nov 2010
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Wheres the fixed header posts?

I want a fixed header and maybe a footer, surely Im not the only one, I have 4.1.0 pl2, I want my entire header to stay put and rest of page to scroll. I cant find the threads on this. How do I do this, or where do I look for the information?
Reply With Quote
  #2  
Old 12-19-2010, 02:27 AM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may help

https://vborg.vbsupport.ru/showthread.php?t=196253
Reply With Quote
  #3  
Old 12-19-2010, 02:47 AM
josephu's Avatar
josephu josephu is offline
 
Join Date: Nov 2010
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, getting closer but not quite there yet. For 1 its for version 3.7 and I am 4.1.0 pl2, and 2 that one is for a header that only loads once as you click thru pages on site, its pretty cool, but again, not what Im looking for, it still scrolls with the page.

Look above, see the vbulletin.org header?, imagine scrolling down and that vbulletin.org header stays right there, and maybe everything under the ( user cp - help - m.list - n.posts - qu.links - log out) bar scrolls underneath the entire top section. make sense?
Reply With Quote
  #4  
Old 12-19-2010, 03:45 AM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try working with adding the following code to additional.css

Code:
.above_body {
position:fixed;
z-index:1000;
}
Depending on your setup, mods etc you may need to work with a bit more css to make it look perfect. Hope this helps.
Reply With Quote
  #5  
Old 12-19-2010, 03:23 PM
josephu's Avatar
josephu josephu is offline
 
Join Date: Nov 2010
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am a newbie, in my admincp>style manager>Main CSS I see all the main blocks for editing the css, the final block talks about adding additional css, "any text here will be entered at the end of style tag" There are 2 text field areas in this final box, the top one has css in it, the bottom one is blank, Ive added your code to both, and it doesnt do anything, but I think it might be because I dont know how to save it, I enter the text in the text field, but how do I save, there is no save button? Am I trying this in the wrong place?
Reply With Quote
  #6  
Old 12-19-2010, 04:34 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the dropdown in the Style Manager click edit templates>CSS Templates>additional.css and its in there. Main CSS is obsolete.
Reply With Quote
  #7  
Old 12-19-2010, 05:35 PM
josephu's Avatar
josephu josephu is offline
 
Join Date: Nov 2010
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok found it, Im trying the code you gave, Ive put it after all the other css and various spots throughout the document but it doesnt work and I can see the "position:fixed;
z-index:1000;" on my site below header. I cant afford to hire someone to do this so I just have to figure it out myself, thank you for all your help
Reply With Quote
  #8  
Old 12-19-2010, 05:44 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are actually seeing the text, then you did it wrong. It would really help if you post a link to your site/style so we can see this.
Reply With Quote
  #9  
Old 12-19-2010, 06:15 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you shouldnt be putting it in "various spots" just one, bottom of additional.css. The reason the text is showing and not the "effect" is because you put it in a template other than additional.css.

For future reference, any css code that is not going to be put in a *.css template, but a regular template MUST be wrapped in

<style type="text/css">

/* Enter your css here */

</style>
Reply With Quote
  #10  
Old 12-19-2010, 08:35 PM
josephu's Avatar
josephu josephu is offline
 
Join Date: Nov 2010
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, you see persistence pays off! Thats finally doing something, although now its obvious I need to move my header all the way up, because of about 1 3/4 inch gap from top of computer screen to top of header, also its apparent that I need to make my header "full width", and thirdly, I need to adjust something so that the top of the body that scrolls, stays under the bottom of the header, I assume I can do all this with header padding adjustments in stylevars? Am I correct?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08727 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete