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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2012, 10:26 PM
dano9258 dano9258 is offline
 
Join Date: Feb 2012
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Please Help Somebody!

Ok, I've tried posting this before with no responses from anybody. I've now searched on Google, here, Vbulletin.com, everywhere i can think of, to try to find an answer and it isn't out there. I'm wondering how to make the header (navbar & toplinks area) 100% of the page but the content be within the content 1200px area. Bascially, I want the header and navbar to go 100% of the browser, with the red line included. Then the logo, nav links, etc all within the 1200px area of the main content. Please, someone either give me a hint or something, as I've been putting so much time and effort into finding an answer, I haven't gotten much else done on the site recently. Thank you!
Reply With Quote
  #2  
Old 03-17-2012, 10:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll need to put a <div> around the stuff you wish to be at only 1200px and apply a style to it that sets it at that width.
Reply With Quote
  #3  
Old 03-19-2012, 02:23 AM
dano9258 dano9258 is offline
 
Join Date: Feb 2012
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So if I set the header width to 100%, and then create a <div> that is at 1200px width, that will work? Will this center the information too? Also, is there a way to set the min width then, so that when you change your browser size, it won't cause items to rearrange on the page.
Reply With Quote
  #4  
Old 03-19-2012, 02:30 AM
Pandemikk Pandemikk is offline
 
Join Date: Jul 2009
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To center it you'll need to also apply margin:0 auto

This is really basic CSS and HTML. I suggest you read up some tutorials on them both in the future.
Reply With Quote
  #5  
Old 03-22-2012, 12:04 PM
dano9258 dano9258 is offline
 
Join Date: Feb 2012
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, so my site is almost how I want it. I've managed to place the header and navtabs into a <div> to get it within the 1200px and centered. However, the global search/advanced search link, as well as the links underneath ("News Headlines, etc) is still at 100% despite being within the <div>. Is there some parent that its inheriting positioning from?
Reply With Quote
  #6  
Old 03-22-2012, 03:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand what you mean. Can we get an image where you point out what the problem is? And also get a link to see it?
Reply With Quote
  #7  
Old 03-22-2012, 04:16 PM
Adam H Adam H is offline
 
Join Date: Apr 2008
Location: UK
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All you need to do is set your forum width margins to 0 , then edit the CSS of the body to a set width. Nothing major needs to be done and no templates need to be edited .
Reply With Quote
  #8  
Old 03-22-2012, 11:36 PM
dano9258 dano9258 is offline
 
Join Date: Feb 2012
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I don't understand what you mean. Can we get an image where you point out what the problem is? And also get a link to see it?
The site link is in my signature (http://www.autocurb.com). You will see what I mean when you go to the site, the search and links under the tabs are all outside of 1200px despite being within my <div>. This is what I have done so far:

1) Set in the stylevars the doc width to 100%.
2) Set in vbulletin.css under .body_wrapper --> width: 1200px; & margin: 0px auto;
3) Set in vbulletin_chrome.css under .header -- > width: 1200px; & margin 0px auto;
3) Created a new class called #mylayout with the width: 1200px & margin: 0px auto; properties
4) Placed class mylayout into Navbar template here:

Code:
<div id="navbar" class="navbar">
	<ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">

<div id="mylayout">

<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div></vb:if>
The end <div> is at the end of the template. So the globalsearch class and everything is within it. However, the search box area, along with the links are still not within the 1200px.
Reply With Quote
  #9  
Old 03-22-2012, 11:39 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Please Help Somebody!
I do, just about every day here.
Reply With Quote
  #10  
Old 03-22-2012, 11:39 PM
setishock setishock is offline
 
Join Date: Feb 2008
Location: Houma, La.
Posts: 1,177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you wanting something like this? > http://animeappeal.com/forum.php?styleid=122
90% of that is in vbulletin-chrome.css with a little of it in vbulletin.css. No html code jiggering is really needed. Took about an hour to get it fine tuned like I wanted it.
But bottom line is it's all CSS magic.
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 10:54 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.08021 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
  • (2)bbcode_quote
  • (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