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 4 of 4
  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    95
    Member #
    28555
    Liked
    1 times
    I am so angry at myself for having to post this here because I would like to think with my basic knowledge I would be able to sort this out but here goes: My wrapper div won't centre!!

    CSS:
    Code:
    *            {padding: 0; margin: 0; outline: 0; border: 0;}
    body        {background-image: url('tile.png'); text-align: justify; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; overflow: scroll;}
    #wrapper    {width: 900px; height: 100%; margin: 0px auto; background-image: url('wrapper.png'); background-repeat: repeat-y;}
    Now, my impression was if an element has a width and margin: 0 auto, it should centre, but it's not!

    Why?!

  2.  

  3. #2
    Junior Member
    Join Date
    Sep 2012
    Posts
    4
    Member #
    33012
    Liked
    1 times
    you should use firebug tool, it is the best tool for web development , try to make change in your code .

  4. #3
    Member
    Join Date
    Jul 2011
    Posts
    95
    Member #
    28555
    Liked
    1 times
    Believe it or not, there was no problem with my CSS, is was my DOCTYPE

    I use Editplus and on creating a new page, it chucks a default doctype in for you but its so old, it just wasnt compatible any more.

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    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 10:24 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com