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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Please help: cannot center Div

    Hello, I'm working on a template for http://rm2k.be . I have created the basic content section, but as you will soon see, I cannot get the main section to line up perfectly in the center. If someone could look at my css (http://sysh.org/rm2k/style.css) and figure out what I'm doing wrong, I would be extremely grateful. Also, if anyone could give me feedback on the colors/and tips that would be great. Thanks.

    note: I've tried putting in margin:auto and then text-align:left and whatnot, but it never seems to work with my page. if anyone could change my code and post it so it correctly centers, i would be overjoyed!

  • #2
    Senior Coder
    Join Date
    Aug 2005
    Posts
    1,119
    Thanks
    2
    Thanked 1 Time in 1 Post
    Get rid of this in #body

    left: 18%;

  • #3
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I do realize i have to do that, its just that if I get rid of it now, the whole thing goes to the left. Does anybody know how to center that after i get rid of the 18%?

  • #4
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.


  •  

    Posting Permissions

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