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 03-25-2011, 06:37 PM
Adan0s Adan0s is offline
 
Join Date: May 2008
Location: Germany
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 3 column design css problem

I'm currently trying to port my new design to vB 4.1.2
  1. Header is fixed over 100%
  2. left and right there are specific images which are each 139px wide
  3. the body_wrapper itself should be between those both graphics, always fit the browser width

It looks generally something like this (won't show my final design here):
http://www.adan0s.de/misc/template.png

At the moment I added two div-layer before body_wrapper and after above_body.

HTML Code:
<body>
<div class="above_body">

<div id="bg_left"></div>
<div id="bg_right"></div>

<div class="body_wrapper">
<div class="below_body">
...
The css code looks like this:

Code:
#bg_left {
background-image: url(bg_left.png);
width: 139px;
height: 600px;
float:left;
}
#bg_right {
background-image: url(bg_right.png);
width: 139px;
height: 600px;
float:right;
}

.body_wrapper{
margin-left: 139px;
margin-right: 139px;
min-height: 600px;
}
Unfortunately due to the massive CSS-amount of vB it just greatly messes up the inner style of the body_wrapper probably because of the floats.



As you can see the whole content itself starts after the 600px of the two bg_left/right.
Someone here who actually managed to realise such a layout?

greetings,
Adan0s
Reply With Quote
  #2  
Old 03-25-2011, 10:16 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=255222" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=255222</a>

Now on that note, I have noticed depending on what side you want the third "column" that it can give you styling issues so I have admittedly used tables/td code to do this as well w/o any issues.
Reply With Quote
  #3  
Old 03-29-2011, 02:26 PM
Adan0s Adan0s is offline
 
Join Date: May 2008
Location: Germany
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your answer.
Unfortunately none of those tricks did help.
I really don't know what to do now. I'm pretty firm with CSS but due to the fact that there are like 10000000 styles are taking action I just don't get it. And I really don't want to mess around with tables.
Reply With Quote
  #4  
Old 03-29-2011, 04:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we get a link? It's really hard to figure out CSS issues just from an image.
Reply With Quote
  #5  
Old 03-29-2011, 06:59 PM
Adan0s Adan0s is offline
 
Join Date: May 2008
Location: Germany
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aye, good point.

-link removed-

I found a workaround which fixes the issue. If you look closely even though the content is aligned correctly it starts right after the background-images end (600px).
So, if I add "margin-top: -600px" to the body_wrapper it works as it should. But as you might figure that's a really...bad fix.
Reply With Quote
  #6  
Old 03-30-2011, 02:33 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is the height you are giving to the side divs. Are those only there to add the image background? Why not just add the image to the actual background CSS? If you google "3 column CSS layout", you'll get a lot of information about what you need to do to get it to work. Your's works fine without the height, so your problem is specific to that and you'll have to try to narrow your searching down to that.
Reply With Quote
  #7  
Old 03-30-2011, 03:44 PM
Adan0s Adan0s is offline
 
Join Date: May 2008
Location: Germany
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. I used an other 3 column css layout and now everything works (even though chrome12 shows an error, but that might depend on the dev version).

I used the following layout: http://www.alistapart.com/articles/holygrail/
and wrapped it around the body_wrapper.
Reply With Quote
  #8  
Old 03-30-2011, 04:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it figured out.
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 06:22 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.03896 seconds
  • Memory Usage 2,226KB
  • 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)bbcode_html
  • (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
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete