I'm currently trying to make a webpage be centered in the middle of anyone's web browser basically like the page you're currently looking at is. it will be centered to however much percent and right now the code i have is this:
<style type="text/css">
body {
width: 85%;
}
</style>
which makes the page only 85% width of the screen but its flush with the left side of the browser, i cant figure out how to make it auto centered. i've looked at multiple different tutorials on several websites but none work, this is the closest i can get.
Also how its coded right now is that the background i have can be seen all over the page, just like this yahoo page i would like to make the area thats not the margins have a solid color to make reading or looking at any content easy, just like this white area covers the blue background.
any tips would be much appreciated!
<style type="text/css">
body {
width: 85%;
}
</style>
which makes the page only 85% width of the screen but its flush with the left side of the browser, i cant figure out how to make it auto centered. i've looked at multiple different tutorials on several websites but none work, this is the closest i can get.
Also how its coded right now is that the background i have can be seen all over the page, just like this yahoo page i would like to make the area thats not the margins have a solid color to make reading or looking at any content easy, just like this white area covers the blue background.
any tips would be much appreciated!