Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post

    Page just won't centre

    Hello

    I can't work out why my page here just refuses to centre:

    http://www.proofreading4students.com/CSS_creator.asp

    Even the date, which I specifically right-align in my CSS, is against the left-margin.

    Could I forward the relevant CSS, please?

    Thanks

  • #2
    Regular Coder patryk's Avatar
    Join Date
    Oct 2012
    Location
    /dev/couch
    Posts
    398
    Thanks
    2
    Thanked 64 Times in 64 Posts
    center your divs using margin-left: auto; margin-right:auto;

    -------------------------------------------------------------------------------
    "Real Programmers can write assembly code in any language" - Larry Wall

  • Users who have thanked patryk for this post:

    SteveH (05-01-2013)

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    YOu need to set margin:0 auto; for your #banner, #menubar & #site_content
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • The Following 2 Users Say Thank You to abduraooft For This Useful Post:

    remas100 (04-30-2013), SteveH (05-01-2013)

  • #4
    New to the CF scene
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by SteveH View Post
    Hello

    I can't work out why my page here just refuses to centre:

    http://www.proofreading4students.com/CSS_creator.asp

    Even the date, which I specifically right-align in my CSS, is against the left-margin.

    Could I forward the relevant CSS, please?

    Thanks

  • #5
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post
    Many thanks to you both. All sorted!

    Cheers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •