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 2 of 2
  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    1
    Member #
    33113
    hi all, hoping someone can help me see the light here..

    I need to center these pages with CSS.. Thought it would be simple but it's not.. So if anyone is up for a challenge?
    I used a 'wrap div' it seems. Have centred only the top banner so far..

    The CSS is a jumble of containers and content divs but after setting all margins to 0 and defining the width I still haven't found the solution. Something is amiss, can you see it?

    My attempt at centering is here : http://www.sanctuaryretreat.com.au/MissionBwrap.html

    Original here: http://www.sanctuaryretreat.com.au/MissionB.html

    CSS: http://www.sanctuaryretreat.com.au/c...tyleedwrap.css

    Menu css : http://www.sanctuaryretreat.com.au/css/menustyle.css

    Original CSS: http://www.sanctuaryretreat.com.au/c...arystyleed.css

    Thank you for reading. I am not familiar with this website or CSS anymore so any suggestions much appreciated!

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Your problem may be a lot more simple than you think.

    1) Remove the absolute positioning from the content div and anywhere else it's not necessary (so far, I've only seen the content div). There is a time and a place for absolute positioning, but the way you're using it isn't it, unfortunately.

    2) Whatever you need centered, use margin: 0px auto; That's why it worked on your header div and nowhere else.
    sstjohn likes this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


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 09:38 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com