Skip to main content
Participant
February 13, 2007
Question

css help

  • February 13, 2007
  • 1 reply
  • 231 views
hello all
i have never used css before, all my sites are just layers and images. i am wondering how to make a web page that sits on a background and when browser window is streched, stays centered. any help would be very much appreciated. thanks
This topic has been closed for replies.

1 reply

Inspiring
February 13, 2007
> all my sites are just layers and images

That's not good.

Here's how to make a centered page with CSS -

Change this -

</head>

to this -

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

change this -

<body ...>

to this -

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

and this -

</body>

to this -

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

and see if that helps.


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do 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
==================


"chenpo" <webforumsuser@macromedia.com> wrote in message
news:eqrl9h$ovk$1@forums.macromedia.com...
> hello all
> i have never used css before, all my sites are just layers and images. i
> am
> wondering how to make a web page that sits on a background and when
> browser
> window is streched, stays centered. any help would be very much
> appreciated.
> thanks
>