People, there is a website ( http://celldweller.org/ , initially its template was rubber (stretched depending on the screen size of the user), but then it was converted into a static one, and now it sticks to the left edge of the screen. Here is a screenshot : http ://celldweller. Yes, and one more question: could you look at this site design option ( http://celldweller.org/data/newDesign/index.html ) and express your opinion about it and say it is better than the original or worse.

  • The second design is more attractive. IMHO - invincible
  • The second is better, I don’t know what even ... "happier", "more unique" ... - Zowie
  • (offtopic) Celldweller - one-person musical ensemble - Scott Albert - Single-person musical ensemble? :) - BomBom
  • Designs are terrible) I would not stay on such a site, even if it was a non-cushioned fan of the group. For piecework - I will draw and design the design, it will be cool))) - Palmervan
  • Fatahan, yes Clayton is the only member of the group, he writes all the music and lyrics + does the arrangements, works on the clips. For concerts, invites their friends musicians from other groups and projects. invincible - thanks, we will refine. Palmervan - thanks for the offer, but since the project is being done for myself, in order to learn something, I want to try to do everything on my own. If I ever claim something serious, of course, I will turn to the help of specialists like you, thanks again for the offer. - anj1817

3 answers 3

With the same success you can do:

body { width: 1024px; margin-left: auto; margin-right: auto; } 

And do not need any a la "main" divs

  • Thank you, gentlemen, your advice was helpful and helped me. - anj1817
  • there is enough body {width: 1024px; margin: 0 auto; } - Elime
  • Who is shorter? =) body {width: 1024px; margin: auto} - ling

Throw everything in a div # wrap.
Write to css: #wrap {width: 1024px; margin: 0 auto}.
...
PROFIT!

    margin: 0 auto; This style aligns any piece of code in the middle. (: