#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    2
    Rep Power
    0

    Css Div, Margin, Spacing Issues


    Hi,
    Having a hard time aligning and distributing divs and just can't space things correctly: opine.com.br/sp/tester.html
    I want to center elements horizontally on page, and I also want to limit horizontal scroll, so page "ends" withou white space to the right!
    Can someone look at code and help? Im sure iM confusing margins, paddings, positions, and maybe other things!

    Thanks!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    101
    Rep Power
    27
    Here's a way to get started with a horizontally-centered page. Give a "text-align: center;" rule to body; and add a class to every outermost element with "margin: 0px auto; text-align: left;" and assign whatever width you need.
    http://jsfiddle.net/UFmuR/
    Hope it helps.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    2
    Rep Power
    0
    Thanks! Will try that!

IMN logo majestic logo threadwatch logo seochat tools logo