centering site using CSS


i'm building site using css , using 'absolute positioning' align each area (no tables). positioned properly, how whole site centered? in past i'd 'center align' outside table, how do using css.
thank help,
dave

> i'm building site using css , using 'absolute positioning' align
> each
> area (no tables).

that's wrong approach. well-built, css-based sites
use no positioning @ all. if putting text these layers
are in bumpy ride....

make sure read -

http://www.great-web-sights.com/g_layerlaws.asp

anyhow, change -

</head>

to -

<style type="text/css">
<!--
body { text-align:center; }
#wrapper { text-align:left; width:760px; margin:0 auto;position:relative; }
/* 760px display on 800px screen maximized browser window without */
/* horizontal scrollbars. */
-->
</style>
</head>

change -

<body ...>

to -

<body ...>
<div id="wrapper">

and -

</body>

to -

<!-- /wrapper -->
</div>
</body>

and see if helps.


--
murray --- icq 71997575
adobe community expert
(if *must* email me, don't laugh when so!)
==================
http://www.dreamweavermx-templates.com - template triage!
http://www.projectseven.com/go - dw faqs, tutorials & resources
http://www.dwfaq.com - dw faqs, tutorials & resources
http://www.macromedia.com/support/search/ - macromedia (mm) technotes
==================


"superdk" <webforumsuser@macromedia.com> wrote in message
news:eo0lfg$jr$1@forums.macromedia.com...
> i'm building site using css , using 'absolute positioning' align
> each
> area (no tables). positioned properly, how
>
> whole site centered? in past i'd 'center align' outside table,
> how
> do using css.
> thank help,
> dave
>
>




More discussions in Dynamic HTML General Discussion (read only)


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial