vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to set a FIXED body margin? (https://vborg.vbsupport.ru/showthread.php?t=106590)

silurius 01-29-2006 01:44 AM

How to set a FIXED body margin?
 
1 Attachment(s)
How do I set a left-hand margin that cannot be penetrated by any forum content whatsoever?

I got design specs that were extremely specific about setting the distance from the top- and left-hand margins, and I'm pulling my hair out for the left. Under certain resolutions, or when I stretch the page by hand, the forum content enters the space on the left, no matter what steps I take.

Editing the margins and margin widths in Main CSS do have influence on it, but this does not prevent the forum content from encroaching on the left-hand margin as illustrated in the second illustration above. What am I missing?

Body extra CSS (played with variants of this):
Code:

margin: 5px 2px 2px 20px;
margin-top: 150px;
margin-left: 20px;
padding: 2px;

The interesting thing is that when I manually stretch my browser vertically (or resize my display), it does not encroach on the top margin, only when I stretch the browser horizontally (or view in dif. resolution).

I've also set percentage and pixel defs in StyleVar, added tables and spacers to header & footer & forumhome, to no avail; stretching the browser page still allows forum content to move and enter a background image that occupies the top-left of my page.

How can I set it so that the left-hand space is completely safe?

silurius 01-31-2006 11:16 PM

Well, I spent some time and as of now I've addressed the problem in Firefox/Opera browsers only. At this time, I do not know of a way to get around this for IE.

The following CSS element in Main CSS -> Body will lock that left-hand margin space down for Firefox/Opera browsers:

Code:

min-width: 1100px;
There may be other tricks of which I am not yet aware. Please post here and PM me if you happen to know of a better solution!


All times are GMT. The time now is 05:52 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.01059 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete