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
  #11  
Old 11-22-2011, 04:12 AM
2fast4ya 2fast4ya is offline
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's not quite doing it... I think normally if I would set the width to 100%, it should work, but it's not... Here is a link to what it looks like - It's the WHITE box at the top that says TEST - I want that white box to extend from one edge of the browser to the other... Normally width: 100% should do that... i dont get it.

http://www.audioneeds.com/forums/content.php?styleid=10
Reply With Quote
  #12  
Old 11-22-2011, 04:19 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just add a few more (negative) pixels to the left and right values until you get it just right. You have to have a negative left margin or it will start above the left edge of the header.
Reply With Quote
  #13  
Old 11-22-2011, 04:22 AM
2fast4ya 2fast4ya is offline
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, but that will not compensate for different browser sizes.. This should adjust with the browser size the same way the Width:100% would... I'm not sure this should go in the header template...
Reply With Quote
  #14  
Old 11-22-2011, 04:33 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will adjust automatically with the window size. Just use trial and error with those negative margin values until you get it all the way to the edge. You won't blow anything up.
Reply With Quote
  #15  
Old 11-22-2011, 04:48 AM
2fast4ya 2fast4ya is offline
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If i make it too large, a scroll bar appears at the bottom of the screen... or if you adjust the window size, and make the window smaller, the scroll bar is there...

I think it has something to do with the doc_width being at 960px. Since the doc_width is making the entire site 960px width... this div element that we're trying to make width 100% - its nto allowing it... I could be wrong, but that's what I'm thinking.

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

Okay, I finally figured this out after ridiculous amounts of trial and error. Going to explain it incase someone else ever tries to do the same thing and can't figure it out... It's actually so damn simple, I'm upset I struggled with it for so long.

You need to go into the header template and before ANYTHING else, enter your div info with the position at absolute, and the width at 100%

<div style="position:absolute; top:0px; left:0px; width:100%;">[DIV CONTENTS GO HERE]</div>

For some reason when i add this in the additional.css file, it doesnt work.
Reply With Quote
  #16  
Old 11-22-2011, 07:15 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you make those negative margins too large you get the scrollbar, too little it doesn't span the whole way. That's why I suggested trial and error until it's just right. -25px would be close, maybe 24 or 26.

<div class="topdiv"> ....... </div>

In additional.css:

.topdiv {
margin:0px -25px 0px -25px;
}

But like I said, experiment with that margin figure.
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 01:17 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.05488 seconds
  • Memory Usage 2,209KB
  • 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)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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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