you have text align left. Take it off, and set all of your other margins and padding (except for left and right) to 0
I had problem when I am trying to center the webpage. Basically I use the wrapper class in css, something like this:
.wrapper {
text-align: left;
margin-left: auto;
margin-right: auto;
}
In HTML code it will be like this:
<body>
<!--Navigation Tab-->
<div class="wrapper">
</div>
</body>
but the webpage is still not centered yet
Would you please provide me with some hints to get through the problem? Thank you.
![]()
you have text align left. Take it off, and set all of your other margins and padding (except for left and right) to 0
Also, text is aligned left by default, so you don't need to specifically declare that (unless it is aligned right, center, or justify elsewhere).
Just use the following
As suggested by ranchero80Code:.wrapper { margin: 0 auto; padding 0;}
Also, if you don't set a width for the wrapper, then it will just fill up the whole body. Depending on how your site's going to be set up (fluid, fixed width, etc.), do something like this:
Code:.wrapper{ margin:0 auto; width:90%; }
what jameson said ... WIDTH is the answer.
Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.
Bookmarks