Click to See Complete Forum and Search --> : Help Again! This Centering is driving me crazy!


SJKate
03-29-2006, 02:53 PM
Hi guys,

OK, so thank you for your help from before for centering pages.

Now I am trying to center everything on my index page. So far, everything is in layers. So, how does the div=align fit in to a layer code?..

<div id="Layer5" style="position:absolute; left:609px; top:55px; width:283px; height:27px; z-index:17; visibility: visible;"><span class="style3"><span class="style4">Bringing</span> <span class="style15">Light</span> <span class="style4">to Applications </span></span></div>


Thanks for all your help! If ya'll lived around here I'd buy you a beer!

felgall
03-29-2006, 03:09 PM
That div is positioned in a defined spot on the page independently of how the rest of the page is aligned.

SJKate
03-29-2006, 03:28 PM
oh, ok.
so... how do i center all my images? do i have to take them out of layers?
i want everything to print out centered and be centered on the page whether it is maximum size or minimized by the viewer.

KDLA
03-29-2006, 04:32 PM
As Stephen pointed out, you've got absolute positioning settings in your divs. This tells the browser where to display the contents on the screen, regardless of screen size.

To align everything center, you need to take that positioning out. Then the easiest way to center the content would be:
css

<style type="text/css">
#wrapper {text-align: center;}
</style>

html

<body>
<div id="wrapper">
your content
</div>
</body>


KDLA