View Single Post
  #1  
Old 11-20-2006, 09:16 PM
chiselneck chiselneck is offline
 
Join Date: Nov 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01095 seconds
  • Memory Usage 1,762KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete