Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 06-10-2006, 06:46 AM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default working with body and header

this is what i currently have in the admincp style settings for the page body

#ffffff url(images/styles/Irisfire/misc/irisfirelogo.jpg) fixed no-repeat;

I have it working the way i want, except for one small detail, i would like to make the header not move with the rest of the page. How can I get the header to be located above the page body? (i.e...so it doesn't scroll with the forumhome display)
Reply With Quote
  #2  
Old 06-10-2006, 06:55 AM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just a little more info since i didn't explain that very well...

number 1 is what it looks like on opening the page
number 2 is what it looks like when you scroll
number 3 is what i want it to look like when you scroll
Attached Images
File Type: jpg 1.JPG (24.0 KB, 0 views)
File Type: jpg 2.JPG (28.2 KB, 0 views)
File Type: jpg 3.JPG (22.7 KB, 0 views)
Reply With Quote
  #3  
Old 06-14-2006, 05:33 AM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?
Reply With Quote
  #4  
Old 06-20-2006, 10:57 AM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no ones got a clue how to do this at all?
Reply With Quote
  #5  
Old 07-06-2006, 09:46 AM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still need an answer to this
Reply With Quote
  #6  
Old 07-06-2006, 12:49 PM
Guest210212002
Guest
 
Posts: n/a
Default

You want everything but the header to scroll? You'd have to stick everything but the header in a frameset, or get slick with DHTML.
Reply With Quote
  #7  
Old 07-07-2006, 03:28 AM
Behemoth's Avatar
Behemoth Behemoth is offline
 
Join Date: Mar 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris-777
You want everything but the header to scroll? You'd have to stick everything but the header in a frameset, or get slick with DHTML.
Actually, it can be done without those, with some tricky coding.

Go to All Style Options for your template.

Ok, first off, keep what you have in the background box. (Assuming that is placed in Body -> Background; if not, move it there.)

Now, in the header box at the top, add above all the code:
HTML Code:
<div id="outertable">
Now in the footer box, you should see code similar to:
HTML Code:
	$vboptions[copyrighttext]
	</div>
</div>
Below that, add a
HTML Code:
</div>
Now, go just under the footer box, and set your Main Table Width to 100% and your Spacer Size to 0.

At the very bottom, in one of your Additional CSS Definitions boxes, add something similar to:
HTML Code:
#outertable {
	width: [what you want width as]; /* Set this to what you had Main Table Width as before */
	padding: [what you want padding as]; /* Set this to what you had Spacer Size as before */
        height: [height you want it to cover]%; /* Set this to the size of the page you want it to take up.  Must be a percent!! (can be 100)*/
        position: absolute; /* Just keep this */
        top: [(100% - height)/2] /* Needed to pad the top of it from the top of the screen */
        left: [((100% - width)/2) (unless your forum is fixed width, in which case it is slightly trickier.  Just tell me if your forum is fixed)] /* Needed to pad the left of the box from the left of the screen. */
        overflow: auto; /* Just keep this.  Makes scrollbar(s).*/
}
Also, you should probably delete the comments from the CSS (The text enclosed in /* */ tags).

Just ask for more help if you need any. I'll subscribe to this thread.
Reply With Quote
  #8  
Old 07-21-2006, 01:11 PM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm..that didn't seem to work at all...would you be willing to take a look at it for me?
Reply With Quote
Reply

Thread Tools
Display Modes

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 08:44 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.03727 seconds
  • Memory Usage 2,239KB
  • Queries Executed 14 (?)
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
  • (4)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (3)postbit_attachment
  • (7)postbit_onlinestatus
  • (8)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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete