I've looked through many posts with the search item "center" and have not been able to find the answer I am looking for.
The skinny of it is this... I'm building a friend a website, and I need the main content to center just like the msn.com website.
I will be using the same page layout for nearly every page, so this of course is important. I just started, but here is the link to the page in question: http://www.sierramobilesound.com/caraudio.shtml
One side note, I've used absolute positioning for nearly everything, so I'm wondering if I will need to apply the answer to every div, or work it out where they are relative to each other within the #content div?
Here is my current CSS page:
Thanks in advance for any help!!!Code:/*This is the main CSS sheet for format of all pages appearance*/ body { background-color: #000000; background-image: url(images/fade.jpg); background-repeat: repeat; } #content { position: absolute; top: 0em; background-color: #fcfffb; max-width: 745px; min-width: 745px; } #bookmark { position: absolute; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: .8em; color: #560169; text-align: right; top: 1em; right: 1em;} #bookmark a:link { color: #560169;} #bookmark a:visited { color: #560169;} #bookmark a:hover { color: #ce01f6;} #navi { position: absolute; display: block; width: 100%; height: 100%; right: 1em;} #navtext { max-width: 580px; position: absolute; top: 166px; left: 123px; background-color: #929292; min-width: 580px; min-height: 209px; text-indent: 9px;} #infobox { position: absolute; min-height: 250px; background-color: #000000; top: 420px; min-width: 650px; color: #ffffff; text-indent: 10px; padding-top: 1em; padding-left: 1em; padding-bottom: 1em; padding-right: 1em; max-width: 650px; left: 58px;} h1 { font-size: 1em; text-align: center; margin-bottom: -1em; } h2 { font-size: 1em; text-align: center; } p { font-size: .8em; text-align: justify;} a {} a:link { color: #061745; text-decoration: none;} a:visited { color: #061745; text-decoration: none;} a:hover { color: #76b4d1; text-decoration: underline;} a:active {} #counter { position: absolute; top: 900px; right: 5%; display: none;}







Bookmarks