Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    3
    Member #
    22821
    I am new to CSS/HTML and am just starting out by making a simple website. How can I get a sheet/box in the center of the page with all my content to center? I want it so that background is one image and its fixed position so if you scroll down the page the image does not move just the content. An example like this:

    Code:
    http://www.metamorphozis.com/free_templates/free_css_templates/metamorph_rainbow/
    Any help?

    Thanks

  2.  

  3. #2
    Senior Member aeroweb99's Avatar
    Join Date
    Feb 2008
    Location
    Port Huron, Michigan
    Posts
    1,037
    Member #
    16468
    Liked
    1 times
    Wrap ALL your content in a div (call it a wrapper or container) and give it margin: 0 auto;

    Background-position: fixed; for the body.

    This is assuming you know css?

  4. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    3
    Member #
    22821
    thanks. got it to work


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:15 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com