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 12-18-2010, 10:07 PM
gregmlb gregmlb is offline
 
Join Date: Dec 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay ? I?m doing much, much better now. I implemented your above suggestions, but still had a few problems until I also changed forumL width to 0px in additional.css (along with your suggested forumC margin-left:165px), so that additional.css wound up as follows:

Code:
#forumFill{
background-image: none;
background-repeat: repeat-x;
width: 100%;
margin-right: auto;
margin-left: auto;
}

#forumL{
background-image: none;
background-repeat: no-repeat;
width: 0px;
float: left;
}

#forumC {
background-image: none;
background-repeat: no-repeat;
margin-left:165px;
float: left;
}
This is structurally what I?m looking for ? and I will now attempt to fill in the HTML and javascript where appropriate. During or after that, I may ask for some more help ? but for now, THANK YOU, SIR! I am indebted to you ? good karma shall follow you ? you the man!
Reply With Quote
  #12  
Old 12-18-2010, 10:13 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gregmlb View Post
Okay ? I?m doing much, much better now. I implemented your above suggestions, but still had a few problems until I also changed forumL width to 0px in additional.css (along with your suggested forumC margin-left:165px), so that additional.css wound up as follows:

Code:
#forumFill{
background-image: none;
background-repeat: repeat-x;
width: 100%;
margin-right: auto;
margin-left: auto;
}

#forumL{
background-image: none;
background-repeat: no-repeat;
width: 0px;
float: left;
}

#forumC {
background-image: none;
background-repeat: no-repeat;
margin-left:165px;
float: left;
}
This is structurally what I?m looking for ? and I will now attempt to fill in the HTML and javascript where appropriate. During or after that, I may ask for some more help ? but for now, THANK YOU, SIR! I am indebted to you ? good karma shall follow you ? you the man!
Now that's what I'm talking about! Remember though sometimes css can be tricky, it's usually something simple you overlook or you over specify so for example the width:0px may work or may give you issues it all depends on what else you have customized but take your time and if all else fails Google what your looking for in regards to CSS, there's TONS of helpful sites and tutorials out there all over the web .
Reply With Quote
  #13  
Old 12-19-2010, 04:57 PM
gregmlb gregmlb is offline
 
Join Date: Dec 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could use a bit more input. What I've found is that, structurally, the following additional.css seems to work the best:

Code:
#forumFill{
background-image: none;
background-repeat: repeat-x;
width: 100%;
margin-right: auto;
margin-left: auto;
}

#forumL{
background-image: none;
background-repeat: no-repeat;
width: 0px;
float: left;
}

#forumC {
background-image: none;
background-repeat: no-repeat;
margin-left:175px;
float: left;
}
***Using the above, the left-side margin / column stays at 175px no matter how wide the browser, etc. … which is exactly what I want.***

HOWEVER, after I insert my HTML/javascript into the navbar template, what I see is the following:



and



So the google ads look fine, but the addthis.com widget, RSS, and even the "Testing 123" text are compressed into a narrow display that is far less than the 175px margin-left in forumC.

Now you might say to just increase the forumL width to 175px (from 0px) … and I've done that, and it does allow the addthis.com, RSS link, and "Testing 123" text to stretch to the right BUT all sorts of odd things happen, such as:
- if the browser window is too narrow when looking at the index.php page, it pushes the forum way down beneath the ads (out of immediate user view)
- if the browser window is wide when looking at index.php, then it doubles the 175px left side column
- when looking inside the forum itself (/forumdisplay.php?2-Midlife-Forum), no matter the browser width, it ALWAYS displays the threads way down beneath the ads (out of immediate user view)

I've also tried all permutations of forumL width and forumC margin-left values of 175px, 0px ... and all have some sort of major display flaw ... EXCEPT for that shown in the code window at the top.

If I using increasingly larger values for forumL width (going from 0px to say, 50px, then 100px, etc.), then I can see that the addthis.com widget, and RSS start to expand to the right ... but then the forum display (looking at index.php) falls beneath the ads (out of view) as the window narrows (as described above). And the forum itself will then ALWAYS show up beneath the ads. For example, if I change the forumL width to 175px (from 0px), then look at the forum (/forumdisplay.php?2-Midlife-Forum) here is what you see:



Any idea how to remedy this? Your input is appreciated greatly/hugely/massively - thanks!

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

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

I think I solved this myself using the following in additional.css. I switched to absolute positioning in forumC - do you see anything wrong or unadvisable here ... ??? It does appear to work in all cases, and in all widths of the browser ...

Code:
#forumFill{
background-image: none;
background-repeat: repeat-x;
width: 100%;
margin-right: auto;
margin-left: auto;
}

#forumL{
background-image: none;
background-repeat: no-repeat;
width: 175px;
float: left;
}

#forumC {
background-image: none;
background-repeat: no-repeat;
min-width:600px;
float: left;
position:absolute;
left:195px;
width:auto;
}
--------------- Added [DATE]1292806296[/DATE] at [TIME]1292806296[/TIME] ---------------

Okay - so I've discovered that using absolute positioning does have one unintended side effect ... one which I'm currently stuck on.

For some reason, the Footer always appears at the end of the left-side column ... right after the second of the two google 160x600 wide skyscraper ads ... regardless of whether that is where the end of the center section is, or not. [It should appear at the VERY BOTTOM of the page (after the end of the center section) ... or that is where I would like it to appear.] Here is what I mean:





So close - yet so far away. Any ideas???
Reply With Quote
  #14  
Old 12-20-2010, 12:40 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Greg,

Give this a try:

Code:
#forumFill{
width:100%;
float: right;
margin-left:-185px;
}

#forumL{
position: absolute;
overflow: hidden;
float: right;
}

#forumC {
margin-left: 185px;
}
Edit: Ok I cleaned it up even more after this post check the above and let me know, basically we needed to simplify what we had notice no more width in the L or C etc.
Reply With Quote
  #15  
Old 12-20-2010, 03:45 AM
gregmlb gregmlb is offline
 
Join Date: Dec 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That does work perfectly ... in all cases ... and in all browsers. You are a genius.

I'm scratching my head trying to figure out WHY that works - what exactly is the "overflow: hidden;" accomplishing? This awesome working solution is completely non-intuitive ... at least to me.

Michael - I owe you big time for helping me with this. If you PM me your shipping address, I can FEDEX you a bottle of your favorite booze, or <insert your gift preference here>. I honestly cannot thank you enough ... plus I'll probably have more questions shortly on other things You are a great individual for helping us (the vB/CSS mental midget masses) as you do ... THANKS!!!
Reply With Quote
  #16  
Old 04-05-2011, 04:10 AM
enci enci is offline
 
Join Date: Feb 2008
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a great post!!! It has been super helpful!

TheLastSuperman, how would you change the css code in additional.css if I had a right column, not left? I've tried changing margin-left to margin-right and a bunch of other things, but my right column always ends up at the bottom near the footer.

Thanks!
Reply With Quote
  #17  
Old 06-14-2011, 11:05 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by enci View Post
What a great post!!! It has been super helpful!

TheLastSuperman, how would you change the css code in additional.css if I had a right column, not left? I've tried changing margin-left to margin-right and a bunch of other things, but my right column always ends up at the bottom near the footer.

Thanks!
Sorry I overlooked this, I know it's been about two months but if your still interested shoot me a PM and we'll discuss then come back here and post our results for everyone else .
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 03:16 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.06595 seconds
  • Memory Usage 2,241KB
  • Queries Executed 13 (?)
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
  • (5)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
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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