vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   body border, how can I set it to 800px (https://vborg.vbsupport.ru/showthread.php?t=132053)

chiselneck 11-20-2006 09:16 PM

body border, how can I set it to 800px
 
I need to add a 2px #000000 border around my forum and set it to fit 800px in width and auto in height. I've added the following CSS to the Edit / Fonts Colors etc > All Style Options > "Body" Extra CSS Atributes:

margin: 10px;
background-image: url('http://mypage.com/images/bckart.jpg');
border: 2px solid #000000;

But I've had no luck getting the 2 px border to a 800px width.
Any suggestions?

Thanks

Okay so I figured out to CSS for this and got the border around my page as it needed to be... now I need to center my page within the browser window.

Heres the CSS code I've written so far to get the border around the page:

Edit / Fonts Colors etc > All Style Options > "Body" Extra CSS Atributes:

margin: 10px;
background-image: url('http://mypage.com/images/bckart.jpg');
width: 800px; height: auto; border: solid 2px #000000

Any suggestions on how to get the page centered in the browser window?
Thanks

Okay, I've just about got this figured out. I got the border to fit my page... perfect.
Then I worked on my CSS until I got the page to center back up... looking good.

align: center;
margin: 0 auto;
background-image: url('http://mypage.com/images/bckart.jpg');
width: 800px; height: auto; border: solid 2px #000000

This also fixed my repeating image issues in my or post. So the forum is looking great so far.
The one thing remaining is to set the margin to 10px from the top of the browser... but this kills my center CSS. So I decided to try and figure out how to create a <br> break in CSS.

Nothing has worked as of yet.
Any suggestions?
Thanks.

Kungfu 11-20-2006 11:51 PM

clear:both to get that "break"

or clear:left, clear:right. try that.

Also i dont know if your forum is a fixed or fluid. Sounds fixed, but for fluid you can use min-width and in IE its different, i would have to look it up again as its a little function.

You can put some div tag somewhere like <div id="spacer"></div>

Then css

#spacer{
clear:both;
}
or

<div style="clear:both;"></div>


All times are GMT. The time now is 02:09 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.01985 seconds
  • Memory Usage 1,707KB
  • 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
  • (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